public class PreferenceContext extends 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
logger, XML_FILE_EXTENSION
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
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(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
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister
public PreferenceContext()
PropertyPlaceholderConfigurer.SYSTEM_PROPERTIES_MODE_OVERRIDE
as
well as ignoring unfound resources.public void postProcessBeanFactory(ConfigurableListableBeanFactory bf)
postProcessBeanFactory
in interface BeanFactoryPostProcessor
postProcessBeanFactory
in class 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.2.8-ice35-b57
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.