Class EnvConfiguration

    • Constructor Detail

      • EnvConfiguration

        public EnvConfiguration()
    • Method Detail

      • setJettyEnvResource

        public void setJettyEnvResource​(Resource resource)
      • setJettyEnvXml

        public void setJettyEnvXml​(java.net.URL url)
      • preConfigure

        public void preConfigure​(WebAppContext context)
                          throws java.lang.Exception
        Description copied from interface: Configuration
        Set up for configuration.

        Typically this step discovers configuration resources. Calls to preConfigure may alter the Configurations configured on the WebAppContext, so long as configurations prior to this configuration are not altered.

        Specified by:
        preConfigure in interface Configuration
        Overrides:
        preConfigure in class AbstractConfiguration
        Parameters:
        context - The context to configure
        Throws:
        java.lang.Exception - if unable to pre configure
      • destroy

        public void destroy​(WebAppContext context)
                     throws java.lang.Exception
        Remove all jndi setup
        Specified by:
        destroy in interface Configuration
        Overrides:
        destroy in class AbstractConfiguration
        Parameters:
        context - The context to configure
        Throws:
        java.lang.Exception - if unable to destroy
      • bindEnvEntries

        public void bindEnvEntries​(WebAppContext context)
                            throws javax.naming.NamingException
        Bind all EnvEntries that have been declared, so that the processing of the web.xml file can potentially override them. We first bind EnvEntries declared in Server scope, then WebAppContext scope.
        Parameters:
        context - the context to use for the object scope
        Throws:
        javax.naming.NamingException - if unable to bind env entries
      • createEnvContext

        protected void createEnvContext​(WebAppContext wac)
                                 throws javax.naming.NamingException
        Throws:
        javax.naming.NamingException