public class PreferenceContext
extends org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
Properties
instancesSystem.getProperties()
ome.services.blitz.Entry
places the values in
{#link System.getProperties()
.DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE
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, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName
convertProperties, 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)
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.