Class EnvironmentLoaderListener

java.lang.Object
org.apache.shiro.web.env.EnvironmentLoader
org.apache.shiro.ee.listeners.EnvironmentLoaderListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

@WebListener public class EnvironmentLoaderListener extends org.apache.shiro.web.env.EnvironmentLoader implements javax.servlet.ServletContextListener
Automatic, adds ability to disable via system property Adds ability to have two shiro.ini configuration files that are merged
  • Field Summary

    Fields inherited from class org.apache.shiro.web.env.EnvironmentLoader

    CONFIG_LOCATIONS_PARAM, ENVIRONMENT_ATTRIBUTE_KEY, ENVIRONMENT_CLASS_PARAM
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    contextDestroyed(javax.servlet.ServletContextEvent sce)
     
    void
    contextInitialized(javax.servlet.ServletContextEvent sce)
     
    protected Class<? extends org.apache.shiro.web.env.WebEnvironment>
    getDefaultWebEnvironmentClass(javax.servlet.ServletContext ctx)
     
    static boolean
    isFormResumbitDisabled(javax.servlet.ServletContext ctx)
     
    static boolean
    isServletNoPrincipal(javax.servlet.ServletContext ctx)
     
    static boolean
    isShiroEEDisabled(javax.servlet.ServletContext ctx)
     

    Methods inherited from class org.apache.shiro.web.env.EnvironmentLoader

    createEnvironment, customizeEnvironment, destroyEnvironment, determineWebEnvironment, determineWebEnvironmentClass, doLoadWebEnvironmentsFromServiceLoader, finalizeEnvironment, initEnvironment

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EnvironmentLoaderListener

      public EnvironmentLoaderListener()
  • Method Details

    • isShiroEEDisabled

      public static boolean isShiroEEDisabled(javax.servlet.ServletContext ctx)
    • isFormResumbitDisabled

      public static boolean isFormResumbitDisabled(javax.servlet.ServletContext ctx)
    • isServletNoPrincipal

      public static boolean isServletNoPrincipal(javax.servlet.ServletContext ctx)
    • contextInitialized

      public void contextInitialized(javax.servlet.ServletContextEvent sce)
      Specified by:
      contextInitialized in interface javax.servlet.ServletContextListener
    • contextDestroyed

      public void contextDestroyed(javax.servlet.ServletContextEvent sce)
      Specified by:
      contextDestroyed in interface javax.servlet.ServletContextListener
    • getDefaultWebEnvironmentClass

      protected Class<? extends org.apache.shiro.web.env.WebEnvironment> getDefaultWebEnvironmentClass(javax.servlet.ServletContext ctx)
      Overrides:
      getDefaultWebEnvironmentClass in class org.apache.shiro.web.env.EnvironmentLoader