Class DevelopmentConfiguration
-
- All Implemented Interfaces:
public class DevelopmentConfigurationExtends the extension with important file directories for the server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDevelopmentConfiguration.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static StringCONFIG_DIR_ENVpublic final static StringCONFIG_DIR_SEC_ENVpublic final static StringCONFIG_DIR_SYSpublic final static StringCONFIG_DIR_SEC_SYSpublic final static StringDEFAULT_CONFIG_PATHpublic final static StringDEFAULT_CONFIGSEC_PATHpublic final static StringCONFIG_FILE_NAMEprivate final StringconfigDirectoryprivate final StringconfigDirectorySecprivate final StringconfigFilePathprivate final StringconfigFilePathSecpublic final static DevelopmentConfiguration.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description DevelopmentConfiguration(ObjectFactory objectFactory, ProviderFactory providerFactory)creates a configuration from environment variables.
-
Method Summary
Modifier and Type Method Description final StringgetConfigDirectory()Local configuration path of the project. final StringgetConfigDirectorySec()Local configuration path of the project. final StringgetConfigFilePath()Get file path for configuration property. final StringgetConfigFilePathSec()Get file path for configuration property. final StringgetConfigProperty(String property)Get access to properties in configuration property file. final StringgetConfigProperty(String property, String defaultValue)Get access to properties in configuration property file. final StringgetConfigPropertySec(String property)Get access to properties in second configuration property file. final StringgetConfigPropertySec(String property, String defaultValue)Get access to properties in second configuration property file. -
-
Method Detail
-
getConfigDirectory
final String getConfigDirectory()
Local configuration path of the project.
-
getConfigDirectorySec
final String getConfigDirectorySec()
Local configuration path of the project.
-
getConfigFilePath
final String getConfigFilePath()
Get file path for configuration property.
-
getConfigFilePathSec
final String getConfigFilePathSec()
Get file path for configuration property.
-
getConfigProperty
final String getConfigProperty(String property)
Get access to properties in configuration property file.
- Parameters:
property- key of the properties file
-
getConfigProperty
final String getConfigProperty(String property, String defaultValue)
Get access to properties in configuration property file.
- Parameters:
property- key of the properties filedefaultValue- if key not available the default value is used.
-
getConfigPropertySec
final String getConfigPropertySec(String property)
Get access to properties in second configuration property file.
- Parameters:
property- key of the properties file
-
getConfigPropertySec
final String getConfigPropertySec(String property, String defaultValue)
Get access to properties in second configuration property file.
- Parameters:
property- key of the properties filedefaultValue- if key not available the default value is used.
-
-
-
-