
public class Settings4jPlaceholderConfigurer
extends org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
You can also configure a Prefix if
Settings4j.getString(String)SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDEDEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, ignoreUnresolvablePlaceholders, nullValue, placeholderPrefix, placeholderSuffix, valueSeparator| Constructor and Description |
|---|
Settings4jPlaceholderConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
static String |
parseStringValue(String strVal)
Parse the given String with Placeholder "${...}" and returns the result.
|
static String |
parseStringValue(String strVal,
String prefix)
Parse the given String with Placeholder "${...}" and returns the result.
|
static String |
parseStringValue(String strVal,
String prefix,
Properties props)
Parse the given String with Placeholder "${...}" and returns the result.
|
protected String |
resolvePlaceholder(String placeholder,
Properties props) |
void |
setPrefix(String prefix) |
parseStringValue, processProperties, resolvePlaceholder, resolveSystemProperty, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeNamedoProcessProperties, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setValueSeparatorconvertProperties, convertProperty, convertPropertyValue, getOrder, postProcessBeanFactory, setOrderpublic void setPrefix(String prefix)
protected String resolvePlaceholder(String placeholder, Properties props)
resolvePlaceholder in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurerpublic static String parseStringValue(String strVal) throws org.springframework.beans.factory.BeanDefinitionStoreException
Placeholders will be resolved with Settings4j.
strVal - the String with the Paceholdersorg.springframework.beans.factory.BeanDefinitionStoreException - if invalid values are encountered (Placeholders where no values where
found).public static String parseStringValue(String strVal, String prefix) throws org.springframework.beans.factory.BeanDefinitionStoreException
Placeholders will be resolved with Settings4j.
strVal - the String with the Paceholdersprefix - for all placehodlers.org.springframework.beans.factory.BeanDefinitionStoreException - if invalid values are encountered (Placeholders where no values where
found).public static String parseStringValue(String strVal, String prefix, Properties props) throws org.springframework.beans.factory.BeanDefinitionStoreException
Placeholders will be resolved with Settings4j.
strVal - the String with the Paceholdersprefix - for all placehodlers.props - The default Properties if no Value where foundorg.springframework.beans.factory.BeanDefinitionStoreException - if invalid values are encountered (Placeholders where no values where
found).Copyright © 2008–2014. All rights reserved.