public final class DeploymentConfigurationFactory extends Object implements Serializable
DeploymentConfiguration
filled with all parameters specified
by the framework users.Modifier and Type | Field and Description |
---|---|
static String |
DEV_FOLDER_MISSING_MESSAGE |
static Object |
DEV_MODE_ENABLE_STRATEGY |
static String |
ERROR_COMPATIBILITY_MODE_UNSET |
static String |
ERROR_DEV_MODE_NO_FILES |
static Object |
FALLBACK_CHUNK |
Modifier and Type | Method and Description |
---|---|
static DeploymentConfiguration |
createDeploymentConfiguration(Class<?> systemPropertyBaseClass,
ServletConfig servletConfig)
Creates a
DeploymentConfiguration instance that is filled with
all parameters, specified for the current app. |
protected static Properties |
createInitParameters(Class<?> systemPropertyBaseClass,
ServletConfig servletConfig)
Generate Property containing parameters for with all parameters contained
in current application.
|
static DeploymentConfiguration |
createPropertyDeploymentConfiguration(Class<?> systemPropertyBaseClass,
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. |
public static final Object DEV_MODE_ENABLE_STRATEGY
public static final Object FALLBACK_CHUNK
public static final String ERROR_COMPATIBILITY_MODE_UNSET
public static final String ERROR_DEV_MODE_NO_FILES
public static final String DEV_FOLDER_MISSING_MESSAGE
public static DeploymentConfiguration createDeploymentConfiguration(Class<?> systemPropertyBaseClass, ServletConfig servletConfig) throws ServletException
DeploymentConfiguration
instance that is filled with
all parameters, specified for the current app.systemPropertyBaseClass
- the class to look for properties defined with annotationsservletConfig
- the config to get the rest of the properties fromDeploymentConfiguration
instanceServletException
- if construction of the Properties
for the parameters
failspublic static DeploymentConfiguration createPropertyDeploymentConfiguration(Class<?> systemPropertyBaseClass, ServletConfig servletConfig) throws ServletException
DeploymentConfiguration
instance that has all
parameters, specified for the current app without doing checks so
property states and only returns default.systemPropertyBaseClass
- the class to look for properties defined with annotationsservletConfig
- the config to get the rest of the properties fromDeploymentConfiguration
instanceServletException
- if construction of the Properties
for the parameters
failsprotected static Properties createInitParameters(Class<?> systemPropertyBaseClass, ServletConfig servletConfig) throws ServletException
systemPropertyBaseClass
- the class to look for properties defined with annotationsservletConfig
- the config to get the rest of the properties fromProperties
instanceServletException
- if construction of the Properties
for the parameters
failsCopyright © 2020. All rights reserved.