public class ConfigHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
| Constructor and Description |
|---|
ConfigHandler(ConfigPersister persister,
java.lang.Class<?> configInterface)
Create a new ConfigHandler instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
getConfigInterface()
Get the configuration interface.
|
ConfigPersister |
getPersister()
Get the configuration source.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Handle a configuration interface method invocation.
|
public ConfigHandler(ConfigPersister persister, java.lang.Class<?> configInterface)
persister - The configuration source.configInterface - The configuration interface.public ConfigPersister getPersister()
public java.lang.Class<?> getConfigInterface()
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerproxy - The proxy implementation.method - The method being invoked.args - The method arguments.java.lang.Throwable