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,
String key) |
boolean |
checkDatabase(String key) |
Set<String> |
getKeySet() |
String |
getProperty(String key)
Lookup method for getting access to the
merged
properties for this instance. |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory bf) |
String |
resolveAlias(String key) |
void |
setPreferences(List<Preference> preferences) |
void |
setProperty(String key,
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 String getProperty(String key)
merged
properties
for this instance.public void setProperty(String key, String value)
public void setPreferences(List<Preference> preferences)
public boolean checkDatabase(String key)
public boolean canRead(EventContext ec, String key)
Version: 5.3.5-ice35-b73
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.