public final class DummyBindingStrategy extends Object implements BindingStrategy
A dummy implementation of the BindingStrategy
interface.
This strategy can be used when no specific (functional) BindingStrategy
implementation is available or is needed (for instance as an
application of the null object pattern). All methods are implemented
as dummies that do not provide any specific functionality - refer to the
documentation of the single methods for more details.
It is not possible to create instances of this class. Instead the static
INSTANCE
field can be used. This instance can be shared between
multiple threads.
Modifier and Type | Field and Description |
---|---|
static DummyBindingStrategy |
INSTANCE
Constant for the shared instance of this class that can be used.
|
Modifier and Type | Method and Description |
---|---|
Object |
readProperty(Object model,
String propertyName)
Reads a property from the given model object.
|
void |
writeProperty(Object model,
String propertyName,
Object value)
Writes a property of the given model object.
|
public static final DummyBindingStrategy INSTANCE
public Object readProperty(Object model, String propertyName)
readProperty
in interface BindingStrategy
model
- the model objectpropertyName
- the name of the propertypublic void writeProperty(Object model, String propertyName, Object value)
writeProperty
in interface BindingStrategy
model
- the model objectpropertyName
- the name of the propertyvalue
- the value of the propertyCopyright © 2016 The JGUIraffe Team. All rights reserved.