Package org.apache.webbeans.context
Class AbstractContextsService
- java.lang.Object
-
- org.apache.webbeans.context.AbstractContextsService
-
- All Implemented Interfaces:
ContextsService
- Direct Known Subclasses:
BaseSeContextsService
public abstract class AbstractContextsService extends Object implements ContextsService
-
-
Field Summary
Fields Modifier and Type Field Description protected BooleanfireRequestLifecycleEventsprotected booleansupportsConversationprotected WebBeansContextwebBeansContext
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractContextsService(WebBeansContext webBeansContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy(Object destroyObject)voiddestroyOutdatedConversations(ConversationContext currentConversationContext)Destroy inactive (timed out) conversations.voidendContext(Class<? extends Annotation> scopeType, Object endParameters)jakarta.enterprise.context.spi.ContextgetCurrentContext(Class<? extends Annotation> scopeType)jakarta.enterprise.context.spi.ContextgetCurrentContext(Class<? extends Annotation> scopeType, boolean createIfNotExists)voidinit(Object initializeObject)booleanisSupportsConversation()voidremoveThreadLocals()voidsetSupportConversations(boolean supportConversations)protected booleanshouldFireRequestLifecycleEvents()voidstartContext(Class<? extends Annotation> scopeType, Object startParameter)
-
-
-
Field Detail
-
webBeansContext
protected final WebBeansContext webBeansContext
-
supportsConversation
protected boolean supportsConversation
-
fireRequestLifecycleEvents
protected Boolean fireRequestLifecycleEvents
-
-
Constructor Detail
-
AbstractContextsService
protected AbstractContextsService(WebBeansContext webBeansContext)
-
-
Method Detail
-
destroy
public void destroy(Object destroyObject)
- Specified by:
destroyin interfaceContextsService
-
endContext
public void endContext(Class<? extends Annotation> scopeType, Object endParameters)
- Specified by:
endContextin interfaceContextsService
-
getCurrentContext
public jakarta.enterprise.context.spi.Context getCurrentContext(Class<? extends Annotation> scopeType)
- Specified by:
getCurrentContextin interfaceContextsService
-
getCurrentContext
public jakarta.enterprise.context.spi.Context getCurrentContext(Class<? extends Annotation> scopeType, boolean createIfNotExists)
- Specified by:
getCurrentContextin interfaceContextsService
-
init
public void init(Object initializeObject)
- Specified by:
initin interfaceContextsService
-
startContext
public void startContext(Class<? extends Annotation> scopeType, Object startParameter) throws jakarta.enterprise.context.ContextException
- Specified by:
startContextin interfaceContextsService- Throws:
jakarta.enterprise.context.ContextException
-
removeThreadLocals
public void removeThreadLocals()
- Specified by:
removeThreadLocalsin interfaceContextsService
-
setSupportConversations
public void setSupportConversations(boolean supportConversations)
- Specified by:
setSupportConversationsin interfaceContextsService
-
destroyOutdatedConversations
public void destroyOutdatedConversations(ConversationContext currentConversationContext)
Destroy inactive (timed out) conversations.
-
isSupportsConversation
public boolean isSupportsConversation()
-
shouldFireRequestLifecycleEvents
protected boolean shouldFireRequestLifecycleEvents()
-
-