Package org.jboss.weld.context
Class AbstractManagedContext
- java.lang.Object
-
- org.jboss.weld.context.AbstractContext
-
- org.jboss.weld.context.AbstractManagedContext
-
- All Implemented Interfaces:
javax.enterprise.context.spi.AlterableContext,javax.enterprise.context.spi.Context,org.jboss.weld.context.ManagedContext
- Direct Known Subclasses:
AbstractBoundContext,AbstractUnboundContext
public abstract class AbstractManagedContext extends AbstractContext implements org.jboss.weld.context.ManagedContext
- Author:
- Pete Muir
-
-
Constructor Summary
Constructors Constructor Description AbstractManagedContext(String contextId, boolean multithreaded)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()voiddeactivate()voidinvalidate()booleanisActive()booleanisValid()protected voidremoveState()The managed state should be always removed during deactivation.protected voidsetActive(boolean active)-
Methods inherited from class org.jboss.weld.context.AbstractContext
checkContextInitialized, cleanup, destroy, destroy, get, get, getBeanStore, getContextual, getId, getServiceRegistry
-
-
-
-
Constructor Detail
-
AbstractManagedContext
public AbstractManagedContext(String contextId, boolean multithreaded)
-
-
Method Detail
-
isActive
public boolean isActive()
- Specified by:
isActivein interfacejavax.enterprise.context.spi.Context
-
setActive
protected void setActive(boolean active)
-
invalidate
public void invalidate()
- Specified by:
invalidatein interfaceorg.jboss.weld.context.ManagedContext
-
activate
public void activate()
- Specified by:
activatein interfaceorg.jboss.weld.context.ManagedContext
-
isValid
public boolean isValid()
-
deactivate
public void deactivate()
- Specified by:
deactivatein interfaceorg.jboss.weld.context.ManagedContext
-
removeState
protected void removeState()
The managed state should be always removed during deactivation. Note that there are some special cases where the context is not deactivated throughdeactivate()method. E.g.AbstractConversationContext.destroy(Object).
-
-