Example usage for Java org.springframework.context.support PropertySourcesPlaceholderConfigurer fields, constructors, methods, implement or subclass
The text is from its open source code.
String | LOCAL_PROPERTIES_PROPERTY_SOURCE_NAME is the name given to the PropertySource for the set of #mergeProperties() merged properties supplied to this configurer. |
PropertySources | getAppliedPropertySources() Return the property sources that were actually applied during #postProcessBeanFactory(ConfigurableListableBeanFactory) post-processing . |
Class> | getClass() Returns the runtime class of this Object . |
void | postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) Processing occurs by replacing ${...} placeholders in bean definitions by resolving each against this configurer's set of PropertySources , which includes:
If #setPropertySources is called, environment and local properties will be ignored. |
void | setEnvironment(Environment environment) PropertySources from the given Environment will be searched when replacing ${...} placeholders. |
void | setIgnoreResourceNotFound(boolean ignoreResourceNotFound) Set if failure to find the property resource should be ignored. |
void | setIgnoreUnresolvablePlaceholders(boolean ignoreUnresolvablePlaceholders) Set whether to ignore unresolvable placeholders. |
void | setLocalOverride(boolean localOverride) Set whether local properties override properties from files. |
void | setLocation(Resource location) Set a location of a properties file to be loaded. |
void | setLocations(Resource... locations) Set locations of properties files to be loaded. |
void | setNullValue(String nullValue) Set a value that should be treated as null when resolved as a placeholder value: e.g. |
void | setOrder(int order) Set the order value of this object for sorting purposes. |
void | setPlaceholderPrefix(String placeholderPrefix) Set the prefix that a placeholder string starts with. |
void | setPlaceholderSuffix(String placeholderSuffix) Set the suffix that a placeholder string ends with. |
void | setProperties(Properties properties) Set local properties, e.g. |
void | setPropertySources(PropertySources propertySources) Customize the set of PropertySources to be used by this configurer. |