Package org.jboss.weld.contexts
Class AbstractSharedContext
- java.lang.Object
-
- org.jboss.weld.contexts.AbstractContext
-
- org.jboss.weld.contexts.AbstractSharedContext
-
- All Implemented Interfaces:
AlterableContext
,Context
- Direct Known Subclasses:
ApplicationContextImpl
,SingletonContextImpl
public abstract class AbstractSharedContext extends AbstractContext
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSharedContext(String contextId)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
protected void
destroy()
Destroys the contextBeanStore
getBeanStore()
Gets the bean storevoid
invalidate()
boolean
isActive()
Determines if the context object is active.String
toString()
-
Methods inherited from class org.jboss.weld.contexts.AbstractContext
checkContextInitialized, destroy, get, get, getContextual, getId, getServiceRegistry, isMultithreaded
-
-
-
-
Constructor Detail
-
AbstractSharedContext
protected AbstractSharedContext(String contextId)
Constructor
-
-
Method Detail
-
getBeanStore
public BeanStore getBeanStore()
Gets the bean store- Specified by:
getBeanStore
in classAbstractContext
- Returns:
- The bean store
-
isActive
public boolean isActive()
Description copied from interface:Context
Determines if the context object is active.- Returns:
true
if the context is active, orfalse
otherwise.
-
invalidate
public void invalidate()
-
destroy
protected void destroy()
Description copied from class:AbstractContext
Destroys the context- Overrides:
destroy
in classAbstractContext
-
cleanup
public void cleanup()
- Overrides:
cleanup
in classAbstractContext
-
-