|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AdvancedContext<K>
This interface defines all the additional methods needed to easily implement
an AlterableContext
| Method Summary | |
|---|---|
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 |
| Methods inherited from interface javax.enterprise.context.spi.Context |
|---|
get, get, getScope, isActive |
| Method Detail |
|---|
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 type
javax.enterprise.context.ContextNotActiveException - if the context is not active
|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||