public abstract class AbstractManagedContext extends AbstractContext implements ManagedContext
| Constructor and Description |
|---|
AbstractManagedContext(java.lang.String contextId,
boolean multithreaded) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Activate the Context.
|
void |
cleanup() |
void |
deactivate()
Deactivate the Context, destroying any instances if the context is invalid.
|
void |
invalidate()
Mark the context as due for destruction when deactivate is called.
|
boolean |
isActive()
Determines if the context object is active.
|
boolean |
isValid() |
protected void |
setActive(boolean active) |
checkContextInitialized, destroy, destroy, get, get, getBeanStore, getContextual, getId, getServiceRegistryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroypublic AbstractManagedContext(java.lang.String contextId,
boolean multithreaded)
public boolean isActive()
Contextprotected void setActive(boolean active)
public void invalidate()
ManagedContextinvalidate in interface ManagedContextpublic void activate()
ManagedContextactivate in interface ManagedContextpublic boolean isValid()
public void deactivate()
ManagedContextdeactivate in interface ManagedContextpublic void cleanup()
cleanup in class AbstractContextCopyright © 2014. All Rights Reserved.