Class AbstractContextsService

  • All Implemented Interfaces:
    org.apache.webbeans.spi.ContextsService
    Direct Known Subclasses:
    BaseSeContextsService

    public abstract class AbstractContextsService
    extends Object
    implements org.apache.webbeans.spi.ContextsService
    • Field Detail

      • 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:
        destroy in interface org.apache.webbeans.spi.ContextsService
      • endContext

        public void endContext​(Class<? extends Annotation> scopeType,
                               Object endParameters)
        Specified by:
        endContext in interface org.apache.webbeans.spi.ContextsService
      • getCurrentContext

        public javax.enterprise.context.spi.Context getCurrentContext​(Class<? extends Annotation> scopeType)
        Specified by:
        getCurrentContext in interface org.apache.webbeans.spi.ContextsService
      • getCurrentContext

        public javax.enterprise.context.spi.Context getCurrentContext​(Class<? extends Annotation> scopeType,
                                                                      boolean createIfNotExists)
        Specified by:
        getCurrentContext in interface org.apache.webbeans.spi.ContextsService
      • init

        public void init​(Object initializeObject)
        Specified by:
        init in interface org.apache.webbeans.spi.ContextsService
      • startContext

        public void startContext​(Class<? extends Annotation> scopeType,
                                 Object startParameter)
                          throws javax.enterprise.context.ContextException
        Specified by:
        startContext in interface org.apache.webbeans.spi.ContextsService
        Throws:
        javax.enterprise.context.ContextException
      • removeThreadLocals

        public void removeThreadLocals()
        Specified by:
        removeThreadLocals in interface org.apache.webbeans.spi.ContextsService
      • setSupportConversations

        public void setSupportConversations​(boolean supportConversations)
        Specified by:
        setSupportConversations in interface org.apache.webbeans.spi.ContextsService
      • destroyOutdatedConversations

        public void destroyOutdatedConversations​(ConversationContext currentConversationContext)
        Destroy inactive (timed out) conversations.
      • isSupportsConversation

        public boolean isSupportsConversation()
      • shouldFireRequestLifecycleEvents

        protected boolean shouldFireRequestLifecycleEvents()