public class ConfigSetter extends ConfigAccessorMethod
ConfigMethod.Factory
Modifier and Type | Field and Description |
---|---|
static ConfigMethod.Factory |
FACTORY
The ConfigSetter factory.
|
Constructor and Description |
---|
ConfigSetter(java.lang.Class<?> configInterface,
java.lang.reflect.Method method)
Create a new ConfigSetter instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke(ConfigHandler handler,
java.lang.Object[] args,
java.lang.Object proxy)
Handle a configuration interface method invocation.
|
void |
setProperty(ConfigPersister persister,
java.lang.Object value)
Set a configuration field value.
|
getPropertyName
public static final ConfigMethod.Factory FACTORY
public ConfigSetter(java.lang.Class<?> configInterface, java.lang.reflect.Method method)
configInterface
- The configuration interface.method
- The method.public java.lang.Object invoke(ConfigHandler handler, java.lang.Object[] args, java.lang.Object proxy)
setProperty(com.haulmont.cuba.core.config.ConfigPersister, java.lang.Object)
with the
filed value.invoke
in class ConfigMethod
handler
- The handler.args
- The method arguments.proxy
- The dynamic proxy created for the configuration interface.public void setProperty(ConfigPersister persister, java.lang.Object value)
persister
- The configuration source.value
- The field value.