public class BridgePropertyPlaceholderConfigurer
extends org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
implements org.apache.camel.component.properties.PropertiesParser, org.apache.camel.spi.PropertiesSource, org.apache.camel.spi.LoadablePropertiesSource
PropertyPlaceholderConfigurer that bridges Camel's
property placeholder with the Spring property
placeholder mechanism.SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDEDEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, ignoreUnresolvablePlaceholders, nullValue, placeholderPrefix, placeholderSuffix, trimValues, valueSeparator| Constructor and Description |
|---|
BridgePropertyPlaceholderConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
String |
getProperty(String name) |
int |
getSystemPropertiesMode() |
Properties |
loadProperties() |
Properties |
loadProperties(Predicate<String> filter) |
String |
parseProperty(String key,
String value,
org.apache.camel.component.properties.PropertiesLookup properties) |
String |
parseUri(String text,
org.apache.camel.component.properties.PropertiesLookup properties,
boolean fallback,
boolean keepUnresolvedOptional) |
protected void |
processProperties(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactoryToProcess,
Properties props) |
void |
reloadProperties(String location) |
protected String |
resolvePlaceholder(String placeholder,
Properties props) |
void |
setParser(org.apache.camel.component.properties.PropertiesParser parser) |
void |
setSystemPropertiesMode(int systemPropertiesMode) |
void |
setSystemPropertiesModeName(String constantName) |
protected String |
springResolvePlaceholders(String text,
org.apache.camel.component.properties.PropertiesLookup properties)
Resolves the placeholders using Spring's property placeholder functionality.
|
resolvePlaceholder, resolveSystemProperty, setSearchSystemEnvironmentdoProcessProperties, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setTrimValues, setValueSeparatorconvertProperties, convertProperty, convertPropertyValue, getOrder, postProcessBeanFactory, setOrderprotected void processProperties(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactoryToProcess,
Properties props)
throws org.springframework.beans.BeansException
processProperties in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurerorg.springframework.beans.BeansExceptionpublic int getSystemPropertiesMode()
public void setSystemPropertiesModeName(String constantName) throws IllegalArgumentException
setSystemPropertiesModeName in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurerIllegalArgumentExceptionpublic void setSystemPropertiesMode(int systemPropertiesMode)
setSystemPropertiesMode in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurerprotected String resolvePlaceholder(String placeholder, Properties props)
resolvePlaceholder in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurerpublic String parseUri(String text, org.apache.camel.component.properties.PropertiesLookup properties, boolean fallback, boolean keepUnresolvedOptional) throws IllegalArgumentException
parseUri in interface org.apache.camel.component.properties.PropertiesParserIllegalArgumentExceptionpublic String parseProperty(String key, String value, org.apache.camel.component.properties.PropertiesLookup properties)
parseProperty in interface org.apache.camel.component.properties.PropertiesParserprotected String springResolvePlaceholders(String text, org.apache.camel.component.properties.PropertiesLookup properties)
text - the text which may contain spring placeholdersproperties - the propertiespublic void setParser(org.apache.camel.component.properties.PropertiesParser parser)
public String getName()
getName in interface org.apache.camel.spi.PropertiesSourcepublic String getProperty(String name)
getProperty in interface org.apache.camel.spi.PropertiesSourcepublic Properties loadProperties()
loadProperties in interface org.apache.camel.spi.LoadablePropertiesSourcepublic Properties loadProperties(Predicate<String> filter)
loadProperties in interface org.apache.camel.spi.LoadablePropertiesSourcepublic void reloadProperties(String location)
reloadProperties in interface org.apache.camel.spi.LoadablePropertiesSourceApache Camel