Class AbstractContextsService

java.lang.Object
org.apache.webbeans.context.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 Details

    • webBeansContext

      protected final WebBeansContext webBeansContext
    • supportsConversation

      protected boolean supportsConversation
    • fireRequestLifecycleEvents

      protected Boolean fireRequestLifecycleEvents
  • Constructor Details

    • AbstractContextsService

      protected AbstractContextsService(WebBeansContext webBeansContext)
  • Method Details

    • detectConversationSupport

      public void detectConversationSupport(WebBeansContext wbc)
      OWB-1074: enable ConversationScoped infrastructure when the deployment defines at least one enabled bean with that scope (fast bean scan). Same rule in SE and servlet (WebContextsService) modes.
    • 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 jakarta.enterprise.context.spi.Context getCurrentContext(Class<? extends Annotation> scopeType)
      Specified by:
      getCurrentContext in interface org.apache.webbeans.spi.ContextsService
    • getCurrentContext

      public jakarta.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 jakarta.enterprise.context.ContextException
      Specified by:
      startContext in interface org.apache.webbeans.spi.ContextsService
      Throws:
      jakarta.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()