Package com.axelor.rpc
Class ContextHandler<T>
- java.lang.Object
-
- com.axelor.rpc.ContextHandler<T>
-
public class ContextHandler<T> extends Object
TheContextHandler
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.
- See Also:
Context
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
addChangeListener
public void addChangeListener(PropertyChangeListener listener)
-
getProxy
public T getProxy()
-
interceptJsonAccess
public Object interceptJsonAccess(Method method, Object[] args) throws Exception
- Throws:
Exception
-
intercept
@RuntimeType public Object intercept(@SuperCall Callable<?> superCall, @Origin Method method, @AllArguments Object[] args) throws Throwable
- Throws:
Throwable
-
getContextId
@RuntimeType public Long getContextId()
-
getContextEntity
@RuntimeType public Object getContextEntity()
-
-