public abstract class AbstractManagedContext extends AbstractContext implements ManagedContext
Constructor and Description |
---|
AbstractManagedContext(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, getServiceRegistry
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy
public AbstractManagedContext(String contextId, boolean multithreaded)
public boolean isActive()
Context
protected void setActive(boolean active)
public void invalidate()
ManagedContext
invalidate
in interface ManagedContext
public void activate()
ManagedContext
activate
in interface ManagedContext
public boolean isValid()
public void deactivate()
ManagedContext
deactivate
in interface ManagedContext
public void cleanup()
cleanup
in class AbstractContext
Copyright © 2014. All Rights Reserved.