public interface ContextManager
Context| Modifier and Type | Method and Description |
|---|---|
<K> void |
addContext(AdvancedContext<K> ctx)
Registers a context
|
<K> AdvancedContext<K> |
getContext(Class<? extends Annotation> scope)
Gives the context corresponding to the given scope
|
boolean |
hasContext(Class<? extends Annotation> scope)
Indicates whether or not a context has a been registered for the given scope
|
<K> AdvancedContext<K> getContext(Class<? extends Annotation> scope)
scope - the annotation class corresponding to the scopeContext corresponding to the given scopeboolean hasContext(Class<? extends Annotation> scope)
scope - the scope of the contexttrue if it exists a context for the given scope, false otherwise<K> void addContext(AdvancedContext<K> ctx)
ctx - the Context to registerCopyright © 2020 eXo Platform SAS. All Rights Reserved.