public interface AdvancedContext<K>
extends javax.enterprise.context.spi.Context
| Modifier and Type | Method and Description |
|---|---|
void |
activate(K key)
Activates the current context using the given key within the context of the thread
|
void |
deactivate(K key)
Deactivates the current context using the given key from the context of the thread
|
void |
destroy(javax.enterprise.context.spi.Contextual<?> contextual)
Destroy the existing contextual instance.
|
void |
register(K key)
Registers a new key to the context
|
void |
unregister(K key)
Unregisters a given key from the context
|
void register(K key)
key - the key to registervoid unregister(K key)
key - the key to unregistervoid activate(K key)
key - the key to use to activate the contextvoid deactivate(K key)
key - the key to use to deactivate the contextvoid destroy(javax.enterprise.context.spi.Contextual<?> contextual)
Destroy the existing contextual instance. If there is no existing instance, no action is taken.
contextual - the contextual typejavax.enterprise.context.ContextNotActiveException - if the context is not activeCopyright © 2017 eXo Platform SAS. All Rights Reserved.