com.vaadin.flow.server.

Class DeploymentConfigurationFactory

    • Method Detail

      • createDeploymentConfiguration

        public static DeploymentConfiguration createDeploymentConfiguration(Class<?> systemPropertyBaseClass,
                                                                            javax.servlet.ServletConfig servletConfig)
                                                                     throws javax.servlet.ServletException

        Creates a DeploymentConfiguration instance that is filled with all parameters, specified for the current app.

        Parameters:

        systemPropertyBaseClass - the class to look for properties defined with annotations

        servletConfig - the config to get the rest of the properties from

        Returns:

        DeploymentConfiguration instance

        Throws:

        javax.servlet.ServletException - if construction of the Properties for the parameters fails

      • createPropertyDeploymentConfiguration

        public static DeploymentConfiguration createPropertyDeploymentConfiguration(Class<?> systemPropertyBaseClass,
                                                                                    javax.servlet.ServletConfig servletConfig)
                                                                             throws javax.servlet.ServletException

        Creates a DeploymentConfiguration instance that has all parameters, specified for the current app without doing checks so property states and only returns default.

        Parameters:

        systemPropertyBaseClass - the class to look for properties defined with annotations

        servletConfig - the config to get the rest of the properties from

        Returns:

        DeploymentConfiguration instance

        Throws:

        javax.servlet.ServletException - if construction of the Properties for the parameters fails

      • createInitParameters

        protected static Properties createInitParameters(Class<?> systemPropertyBaseClass,
                                                         javax.servlet.ServletConfig servletConfig)
                                                  throws javax.servlet.ServletException

        Generate Property containing parameters for with all parameters contained in current application.

        Parameters:

        systemPropertyBaseClass - the class to look for properties defined with annotations

        servletConfig - the config to get the rest of the properties from

        Returns:

        Properties instance

        Throws:

        javax.servlet.ServletException - if construction of the Properties for the parameters fails