info.magnolia.init
package.@Deprecated public class PropertiesInitializer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_ATTRIBUTE_PLACEHOLDER_PREFIX
Deprecated.
Context attribute prefix, to obtain a property definition like ${contextAttribute/property}, that can refer to
any context attribute.
|
static String |
CONTEXT_PARAM_PLACEHOLDER_PREFIX
Deprecated.
Context parameter prefix, to obtain a property definition like ${contextParam/property}, that can refer to any
context parameter.
|
static String |
DEFAULT_INITIALIZATION_PARAMETER
Deprecated.
Default value for the MAGNOLIA_INITIALIZATION_FILE parameter.
|
static String |
ENV_PROPERTY_PLACEHOLDER_PREFIX
Deprecated.
System property prefix, to obtain a property definition like ${systemProperty/property}, that can refer to any
System property.
|
static String |
PLACEHOLDER_PREFIX
Deprecated.
Placeholder prefix: "${".
|
static String |
PLACEHOLDER_SUFFIX
Deprecated.
Placeholder suffix: "}".
|
static String |
SYSTEM_PROPERTY_PLACEHOLDER_PREFIX
Deprecated.
System property prefix, to obtain a property definition like ${systemProperty/property}, that can refer to any
System property.
|
Constructor and Description |
---|
PropertiesInitializer(ModuleRegistry moduleRegistry)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static PropertiesInitializer |
getInstance()
Deprecated.
since 4.5, use IoC
|
void |
loadAllModuleProperties()
Deprecated.
|
void |
loadAllProperties(String propertiesFilesString,
String rootPath)
Deprecated.
|
void |
loadBeanProperties()
Deprecated.
since 4.5, replaced by a new ClasspathPropertySource("/mgnl-beans.properties").
|
protected void |
loadModuleProperties(List<ModuleDefinition> moduleDefinitions)
Deprecated.
Load the properties defined in the module descriptors.
|
boolean |
loadPropertiesFile(String rootPath,
String location)
Deprecated.
Try to load a magnolia.properties file.
|
void |
loadPropertiesFiles(String propertiesLocationString,
String rootPath)
Deprecated.
|
void |
overloadWithSystemProperties()
Deprecated.
Overload the properties with set system properties.
|
protected String |
parseStringValue(String strVal,
Set<String> visitedPlaceholders)
Deprecated.
since 4.5 this is now done by
AbstractMagnoliaConfigurationProperties.parseStringValue(java.lang.String, java.util.Set<java.lang.String>) . |
static String |
processPropertyFilesString(javax.servlet.ServletContext context,
String servername,
String webapp,
String propertiesFilesString,
String contextPath)
Deprecated.
since 4.5, this is done by
DefaultMagnoliaPropertiesResolver.DefaultMagnoliaPropertiesResolver(javax.servlet.ServletContext, info.magnolia.init.MagnoliaInitPaths) .
Note: when remove this class and method, this code will need to be cleaned up and moved to info.magnolia.init.DefaultMagnoliaPropertiesResolver |
public static final String PLACEHOLDER_PREFIX
public static final String PLACEHOLDER_SUFFIX
public static final String CONTEXT_ATTRIBUTE_PLACEHOLDER_PREFIX
public static final String CONTEXT_PARAM_PLACEHOLDER_PREFIX
public static final String SYSTEM_PROPERTY_PLACEHOLDER_PREFIX
public static final String ENV_PROPERTY_PLACEHOLDER_PREFIX
public static final String DEFAULT_INITIALIZATION_PARAMETER
@Inject public PropertiesInitializer(ModuleRegistry moduleRegistry)
public static PropertiesInitializer getInstance()
public void loadAllProperties(String propertiesFilesString, String rootPath)
public void loadAllModuleProperties()
protected void loadModuleProperties(List<ModuleDefinition> moduleDefinitions)
public void loadPropertiesFiles(String propertiesLocationString, String rootPath)
@Deprecated public void loadBeanProperties()
DefaultMagnoliaConfigurationProperties
public boolean loadPropertiesFile(String rootPath, String location)
public void overloadWithSystemProperties()
public static String processPropertyFilesString(javax.servlet.ServletContext context, String servername, String webapp, String propertiesFilesString, String contextPath)
DefaultMagnoliaPropertiesResolver.DefaultMagnoliaPropertiesResolver(javax.servlet.ServletContext, info.magnolia.init.MagnoliaInitPaths)
.
Note: when remove this class and method, this code will need to be cleaned up and moved to info.magnolia.init.DefaultMagnoliaPropertiesResolverWEB-INF/config/${servername}/${contextAttribute/com.ibm.websphere.servlet.application.host}/magnolia.properties
context
- Servlet contextservername
- Server namewebapp
- Webapp namepropertiesFilesString
- a comma separated list of paths.protected String parseStringValue(String strVal, Set<String> visitedPlaceholders)
AbstractMagnoliaConfigurationProperties.parseStringValue(java.lang.String, java.util.Set<java.lang.String>)
.Copyright © 2003–2019 Magnolia International Ltd.. All rights reserved.