|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elca.el4j.core.contextpassing.DefaultImplicitContextPassingRegistry
public class DefaultImplicitContextPassingRegistry
Default implementation of ImplicitContextPassingRegistry
. To
register the implicit context passers, their classname is used as id.
Constructor Summary | |
---|---|
DefaultImplicitContextPassingRegistry()
|
Method Summary | |
---|---|
Map<String,Object> |
getAssembledImplicitContext()
This method is used by remoting infrastructures on the client side to collect what needs to be added to the context. |
void |
pushAssembledImplicitContext(Map<String,Object> contexts)
This method is used by remoting infrastructures on the server side to push the context to the beans. |
void |
registerImplicitContextPasser(ImplicitContextPasser passer)
Register a new implicit context passer to the registry. |
void |
unregisterImplicitContextPasser(ImplicitContextPasser passer)
Unregister a registered implicit context passer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultImplicitContextPassingRegistry()
Method Detail |
---|
public void registerImplicitContextPasser(ImplicitContextPasser passer)
registerImplicitContextPasser
in interface ImplicitContextPassingRegistry
passer
- The implicit context passer to register.public void unregisterImplicitContextPasser(ImplicitContextPasser passer)
unregisterImplicitContextPasser
in interface ImplicitContextPassingRegistry
passer
- The implicit context passer to unregister.public Map<String,Object> getAssembledImplicitContext()
getImplicitlyPassedContext
method of all registered
implicit context passers.
It returns a map with the "id -> context" mapping that needs to be
passed with the remote invocation.
getAssembledImplicitContext
in interface ImplicitContextPassingRegistry
public void pushAssembledImplicitContext(Map<String,Object> contexts)
pushImplicitlyPassedContext
method on all registered
implicit context passers.
Its context's parameter holds the "id -> context" mappings that are
passed with the remote invocation.
pushAssembledImplicitContext
in interface ImplicitContextPassingRegistry
contexts
- The received implicit context map that holds the
"id -> context" mappings that are passed with the remote
invocation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |