Package org.jboss.weld.contexts
Class AbstractManagedContext
- java.lang.Object
-
- org.jboss.weld.contexts.AbstractContext
-
- org.jboss.weld.contexts.AbstractManagedContext
-
- All Implemented Interfaces:
jakarta.enterprise.context.spi.AlterableContext
,jakarta.enterprise.context.spi.Context
,org.jboss.weld.context.ManagedContext
,org.jboss.weld.context.WeldAlterableContext
- 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 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)
-
Methods inherited from class org.jboss.weld.contexts.AbstractContext
checkContextInitialized, cleanup, destroy, destroy, get, get, getBeanStore, getContextual, getId, getServiceRegistry, isMultithreaded
-
-
-
-
Constructor Detail
-
AbstractManagedContext
public AbstractManagedContext(String contextId, boolean multithreaded)
-
-
Method Detail
-
isActive
public boolean isActive()
- Specified by:
isActive
in interfacejakarta.enterprise.context.spi.Context
-
setActive
protected void setActive(boolean active)
-
invalidate
public void invalidate()
- Specified by:
invalidate
in interfaceorg.jboss.weld.context.ManagedContext
-
activate
public void activate()
- Specified by:
activate
in interfaceorg.jboss.weld.context.ManagedContext
-
isValid
public boolean isValid()
-
deactivate
public void deactivate()
- Specified by:
deactivate
in 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)
.
-
-