public class BridgePropertyPlaceholderConfigurer extends org.springframework.beans.factory.config.PropertyPlaceholderConfigurer implements org.apache.camel.component.properties.PropertiesParser, org.apache.camel.spi.PropertiesSource
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() |
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) |
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, setSearchSystemEnvironmentdoProcessProperties, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setTrimValues, setValueSeparatorconvertProperties, convertProperty, convertPropertyValue, getOrder, postProcessBeanFactory, setOrderpublic BridgePropertyPlaceholderConfigurer()
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.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) 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.PropertiesSourceApache Camel