public class PreferenceContext
extends org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
Properties
instancesSystem.getProperties()
ome.services.blitz.Entry
places the values in
{#link System.getProperties()
.SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, ignoreUnresolvablePlaceholders, nullValue, placeholderPrefix, placeholderSuffix, trimValues, valueSeparator
Constructor and Description |
---|
PreferenceContext()
By default, configures this instance for
PropertyPlaceholderConfigurer.SYSTEM_PROPERTIES_MODE_OVERRIDE as
well as ignoring unfound resources. |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead(EventContext ec,
java.lang.String key) |
boolean |
checkDatabase(java.lang.String key) |
java.util.Set<java.lang.String> |
getKeySet() |
java.lang.String |
getProperty(java.lang.String key)
Lookup method for getting access to the
merged
properties for this instance. |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory bf) |
java.lang.String |
resolveAlias(java.lang.String key) |
void |
setPreferences(java.util.List<Preference> preferences) |
void |
setProperty(java.lang.String key,
java.lang.String value)
With ticket:2214, preferences are no longer mutable.
|
parseStringValue, processProperties, resolvePlaceholder, resolvePlaceholder, resolveSystemProperty, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName
doProcessProperties, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setTrimValues, setValueSeparator
convertProperties, convertProperty, convertPropertyValue, getOrder, setOrder
public PreferenceContext()
PropertyPlaceholderConfigurer.SYSTEM_PROPERTIES_MODE_OVERRIDE
as
well as ignoring unfound resources.public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory bf)
postProcessBeanFactory
in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
postProcessBeanFactory
in class org.springframework.beans.factory.config.PropertyResourceConfigurer
public java.lang.String getProperty(java.lang.String key)
merged
properties
for this instance.public void setProperty(java.lang.String key, java.lang.String value)
public void setPreferences(java.util.List<Preference> preferences)
public java.lang.String resolveAlias(java.lang.String key)
public java.util.Set<java.lang.String> getKeySet()
public boolean checkDatabase(java.lang.String key)
public boolean canRead(EventContext ec, java.lang.String key)