Class QuickStartConfiguration

    • Field Detail

      • __replacedConfigurations

        public static final java.util.Set<java.lang.Class<? extends Configuration>> __replacedConfigurations
      • ORIGIN_ATTRIBUTE

        public static final java.lang.String ORIGIN_ATTRIBUTE
        See Also:
        Constant Field Values
      • QUICKSTART_WEB_XML

        public static final java.lang.String QUICKSTART_WEB_XML
        See Also:
        Constant Field Values
    • Constructor Detail

      • QuickStartConfiguration

        public QuickStartConfiguration()
    • Method Detail

      • configureMode

        public static void configureMode​(Server server,
                                         java.lang.String mode)
        Configure the server for the quickstart mode.

        In practise this means calling server.setDryRun(true) for GENERATE mode

        Parameters:
        server - The server to configure
        mode - The quickstart mode
        See Also:
        Server.setDryRun(boolean)
      • 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
      • quickStart

        protected void quickStart​(WebAppContext context)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getQuickStartWebXml

        public Resource getQuickStartWebXml​(WebAppContext context)
                                     throws java.lang.Exception
        Get the quickstart-web.xml file as a Resource.
        Parameters:
        context - the web app context
        Returns:
        the Resource for the quickstart-web.xml
        Throws:
        java.lang.Exception - if unable to find the quickstart xml