public abstract class AbstractManagedContext extends AbstractContext implements ManagedContext
| Constructor and Description |
|---|
AbstractManagedContext(String contextId,
boolean multithreaded) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
void |
invalidate() |
boolean |
isActive() |
boolean |
isValid() |
protected void |
removeState()
The managed state should be always removed during deactivation.
|
protected void |
setActive(boolean active) |
checkContextInitialized, cleanup, destroy, destroy, get, get, getBeanStore, getContextual, getId, getServiceRegistrypublic AbstractManagedContext(String contextId, boolean multithreaded)
public boolean isActive()
isActive in interface javax.enterprise.context.spi.Contextprotected void setActive(boolean active)
public void invalidate()
invalidate in interface ManagedContextpublic void activate()
activate in interface ManagedContextpublic boolean isValid()
public void deactivate()
deactivate in interface ManagedContextprotected void removeState()
deactivate() method. E.g. AbstractConversationContext.destroy(Object).Copyright © 2017. All rights reserved.