Class WebXmlConfiguration

    • Constructor Detail

      • WebXmlConfiguration

        public WebXmlConfiguration()
    • Method Detail

      • 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

        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
      • configure

        public void configure​(WebAppContext context)
                       throws java.lang.Exception
        Process web-default.xml, web.xml, override-web.xml
        Specified by:
        configure in interface Configuration
        Overrides:
        configure in class AbstractConfiguration
        Parameters:
        context - The context to configure
        Throws:
        java.lang.Exception - if unable to configure
      • findWebXml

        protected Resource findWebXml​(WebAppContext context)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • deconfigure

        public void deconfigure​(WebAppContext context)
                         throws java.lang.Exception
        Description copied from interface: Configuration
        DeConfigure WebApp. This method is called to undo all configuration done. This is called to allow the context to work correctly over a stop/start cycle
        Specified by:
        deconfigure in interface Configuration
        Overrides:
        deconfigure in class AbstractConfiguration
        Parameters:
        context - The context to configure
        Throws:
        java.lang.Exception - if unable to deconfigure