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_OVERRIDE
DEFAULT_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) |
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, setSearchSystemEnvironment
doProcessProperties, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setTrimValues, setValueSeparator
convertProperties, convertProperty, convertPropertyValue, getOrder, postProcessBeanFactory, setOrder
protected void processProperties(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactoryToProcess, Properties props) throws org.springframework.beans.BeansException
processProperties
in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
org.springframework.beans.BeansException
public int getSystemPropertiesMode()
public void setSystemPropertiesModeName(String constantName) throws IllegalArgumentException
setSystemPropertiesModeName
in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
IllegalArgumentException
public void setSystemPropertiesMode(int systemPropertiesMode)
setSystemPropertiesMode
in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
protected String resolvePlaceholder(String placeholder, Properties props)
resolvePlaceholder
in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
public 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.PropertiesParser
IllegalArgumentException
public String parseProperty(String key, String value, org.apache.camel.component.properties.PropertiesLookup properties)
parseProperty
in interface org.apache.camel.component.properties.PropertiesParser
protected 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.PropertiesSource
public String getProperty(String name)
getProperty
in interface org.apache.camel.spi.PropertiesSource
public Properties loadProperties()
loadProperties
in interface org.apache.camel.spi.LoadablePropertiesSource
public Properties loadProperties(Predicate<String> filter)
loadProperties
in interface org.apache.camel.spi.LoadablePropertiesSource
Apache Camel