Class ShiroScopeContext

java.lang.Object
org.apache.shiro.ee.cdi.ShiroScopeContext
All Implemented Interfaces:
Serializable, javax.enterprise.context.spi.Context

public class ShiroScopeContext extends Object implements javax.enterprise.context.spi.Context, Serializable
If web environment, delegate to SessionScoped, otherwise use Shiro sessions to store session beans
See Also:
  • Constructor Details

  • Method Details

    • getScope

      public Class<? extends Annotation> getScope()
      Specified by:
      getScope in interface javax.enterprise.context.spi.Context
    • get

      public <T> T get(javax.enterprise.context.spi.Contextual<T> contextual, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
      Specified by:
      get in interface javax.enterprise.context.spi.Context
    • get

      public <T> T get(javax.enterprise.context.spi.Contextual<T> contextual)
      Specified by:
      get in interface javax.enterprise.context.spi.Context
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface javax.enterprise.context.spi.Context
    • isWebContainerSessions

      public static boolean isWebContainerSessions(org.apache.shiro.mgt.SecurityManager sm)
    • addScopeSessionListeners

      public static void addScopeSessionListeners(org.apache.shiro.web.mgt.WebSecurityManager wsm)