public class PreferenceContext
extends org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
Properties
instancesSystem.getProperties()
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)
Modify the application context's internal bean factory after its standard
initialization.
|
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)
org.springframework.beans.factory.config.BeanFactoryPostProcessor
postProcessBeanFactory
in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
postProcessBeanFactory
in class org.springframework.beans.factory.config.PropertyResourceConfigurer
bf
- the bean factory used by the application contextpublic 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.1.2-ice35-b45
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.