com.vaadin.flow.server.
Class DeploymentConfigurationFactory
- java.lang.Object
-
- com.vaadin.flow.server.DeploymentConfigurationFactory
-
All Implemented Interfaces:
public final class DeploymentConfigurationFactory extends Object implements Serializable
A class that creates
DeploymentConfiguration
filled with all parameters specified by the framework users.See Also:
-
-
Method Summary
All Methods Modifier and Type Method and Description static DeploymentConfiguration
createDeploymentConfiguration(Class<?> systemPropertyBaseClass, javax.servlet.ServletConfig servletConfig)
Creates a
DeploymentConfiguration
instance that is filled with all parameters, specified for the current app.protected static Properties
createInitParameters(Class<?> systemPropertyBaseClass, javax.servlet.ServletConfig servletConfig)
Generate Property containing parameters for with all parameters contained in current application.
static DeploymentConfiguration
createPropertyDeploymentConfiguration(Class<?> systemPropertyBaseClass, javax.servlet.ServletConfig servletConfig)
Creates a
DeploymentConfiguration
instance that has all parameters, specified for the current app without doing checks so property states and only returns default.
-
-
-
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 annotationsservletConfig
- the config to get the rest of the properties fromReturns:
DeploymentConfiguration
instanceThrows:
javax.servlet.ServletException
- if construction of theProperties
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 annotationsservletConfig
- the config to get the rest of the properties fromReturns:
DeploymentConfiguration
instanceThrows:
javax.servlet.ServletException
- if construction of theProperties
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 annotationsservletConfig
- the config to get the rest of the properties fromReturns:
Properties
instanceThrows:
javax.servlet.ServletException
- if construction of theProperties
for the parameters fails
-
-