public class ContextHandler<T> extends Object
ContextHandler
provides seamless way to access context values using proxy.
The proxy and it's fields are initialized lazily from the context value map when context variable is access. Any missing value of the bean is accessed from the managed instance.
For internal use only.
Context
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(PropertyChangeListener listener) |
Object |
getContextEntity() |
Long |
getContextId() |
Map<String,Object> |
getContextMap() |
T |
getProxy() |
Object |
intercept(Callable<?> superCall,
Method method,
Object[] args) |
Object |
interceptJsonAccess(Method method,
Object[] args) |
public void addChangeListener(PropertyChangeListener listener)
public T getProxy()
public Object interceptJsonAccess(Method method, Object[] args) throws Exception
Exception
@RuntimeType public Object intercept(@SuperCall Callable<?> superCall, @Origin Method method, @AllArguments Object[] args) throws Throwable
Throwable
@RuntimeType public Long getContextId()
@RuntimeType public Object getContextEntity()