Class ServletConfigurationPropertyProvider
java.lang.Object
de.aristaflow.adept2.base.configuration.PropertyProvider
de.aristaflow.adept2.base.configuration.ConfigurationPropertyProvider
de.aristaflow.adept2.base.configuration.ServletConfigurationPropertyProvider
A
ServletConfigurationPropertyProvider provides the means to
retrieve global properties and the variables to be substituted from system
properties as well as the init parameter of a servlet configuration or of a
servlet context.
This class parses the following (static) properties from the system environment:
- os.name
- arflow.logdir
- arflow.datadir
- arflow.libdir
- arflow.useSunSecProvider
- arflow.confurl
- arflow.confdir
- arflow.configuration.runtime.defaultdatasource
- arflow.confdir.runtime
- arflow.configuration.bundle
- arflow.debug.configuration
- arflow.logging.keephandler
-
Field Summary
Fields inherited from class de.aristaflow.adept2.base.configuration.PropertyProvider
DIRECTORY_PROPERTY_NAMES, logger -
Constructor Summary
ConstructorsConstructorDescriptionServletConfigurationPropertyProvider(jakarta.servlet.ServletConfig config) Creates a newServletConfigurationPropertyProviderand parses all corresponding properties from the init parameter of the designated servlet configuration and the system properties.ServletConfigurationPropertyProvider(jakarta.servlet.ServletContext context) Creates a newServletConfigurationPropertyProviderand parses all corresponding properties from the init parameter of the designated servlet context and the system properties. -
Method Summary
Modifier and TypeMethodDescriptiongetProperties(jakarta.servlet.ServletConfig config) Parses and sets the global properties required for the AristaFlow-platform from the designated servlet configuration.getProperties(jakarta.servlet.ServletContext context) Parses and sets the global properties required for the AristaFlow-platform from the designated servlet context.getProperties(Function<String, String> propValue) Parses and sets the global properties required for the AristaFlow-platform using the designated function..Methods inherited from class de.aristaflow.adept2.base.configuration.ConfigurationPropertyProvider
getAfterConfDirs, getBeforeConfDirs, getBundleConfigSubdir, getConfDirs, getDebugConfig, getKeepLogHandler, getRuntimeConfDir, getUseDefDsForRtConf, initialiseProperties, injectDefaultConfDir, parseConfDirsMethods inherited from class de.aristaflow.adept2.base.configuration.PropertyProvider
getBaseForDefaultDirs, getSkipClosing, getSubstitutedVariables, getTotalMemPerthousandStreamThreshold, getUserHomeBaseDir, getUseSunSecurityProviders, resolveConfVar
-
Constructor Details
-
ServletConfigurationPropertyProvider
public ServletConfigurationPropertyProvider(jakarta.servlet.ServletConfig config) throws ConfigurationException Creates a newServletConfigurationPropertyProviderand parses all corresponding properties from the init parameter of the designated servlet configuration and the system properties.- Parameters:
config- The servlet configuration providing the AristaFlow-properties- Throws:
ConfigurationException- If there are problems retrieving a required global property or a substituted variables or the root configuration, aConfigurationExceptionwill be thrown.
-
ServletConfigurationPropertyProvider
public ServletConfigurationPropertyProvider(jakarta.servlet.ServletContext context) throws ConfigurationException Creates a newServletConfigurationPropertyProviderand parses all corresponding properties from the init parameter of the designated servlet context and the system properties.- Parameters:
context- The servlet context providing the AristaFlow-properties- Throws:
ConfigurationException- If there are problems retrieving a required global property or a substituted variables or the root configuration, aConfigurationExceptionwill be thrown.
-
-
Method Details
-
getProperties
Parses and sets the global properties required for the AristaFlow-platform from the designated servlet configuration. Static properties and non-existing values will be retrieved from the system properties. The following properties are parsed from the system properties:- os.name
- arflow.logdir
- arflow.datadir
- arflow.libdir
- arflow.useSunSecProvider
- arflow.confurl
- arflow.confdir
- arflow.configuration.runtime.defaultdatasource
- arflow.confdir.runtime
- arflow.configuration.bundle
- arflow.debug.configuration
- arflow.logging.keephandler
- Parameters:
config- The servlet configuration which to parse.- Returns:
- A map containing the global properties parsed from the designated servlet configuration as well as the system properties.
-
getProperties
Parses and sets the global properties required for the AristaFlow-platform from the designated servlet context. Static properties and non-existing values will be retrieved from the system properties. The following properties are parsed from the system properties:- os.name
- arflow.logdir
- arflow.datadir
- arflow.libdir
- arflow.useSunSecProvider
- arflow.confurl
- arflow.confdir
- arflow.configuration.runtime.defaultdatasource
- arflow.confdir.runtime
- arflow.configuration.bundle
- arflow.debug.configuration
- arflow.logging.keephandler
- Parameters:
context- The servlet context which to parse.- Returns:
- A map containing the global properties parsed from the designated servlet context as well as the system properties.9
-
getProperties
Parses and sets the global properties required for the AristaFlow-platform using the designated function.. Static properties and non-existing values will be retrieved from the system properties. The following properties are parsed from the system properties:- os.name
- arflow.logdir
- arflow.datadir
- arflow.libdir
- arflow.useSunSecProvider
- arflow.confurl
- arflow.confdir
- arflow.configuration.runtime.defaultdatasource
- arflow.confdir.runtime
- arflow.configuration.bundle
- arflow.debug.configuration
- arflow.logging.keephandler
- Parameters:
propValue- The provider returning the property value for a specific property key.- Returns:
- A map containing the global properties parsed from the designated servlet context as well as the system properties.
-