Package com.axelor.rpc
Class ContextHandler<T>
- java.lang.Object
-
- com.axelor.rpc.ContextHandler<T>
-
public class ContextHandler<T> extends Object
TheContextHandlerprovides 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 voidaddChangeListener(PropertyChangeListener listener)ObjectgetContextEntity()LonggetContextId()Map<String,Object>getContextMap()TgetProxy()Objectintercept(Callable<?> superCall, Method method, Object[] args)ObjectinterceptJsonAccess(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()
-
-