public class BridgePropertyPlaceholderConfigurer extends 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, valueSeparatorlocalOverride, localProperties, loggerHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| 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(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, setOrderloadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersisterpublic BridgePropertyPlaceholderConfigurer()
protected void processProperties(ConfigurableListableBeanFactory beanFactoryToProcess, Properties props) throws BeansException
processProperties in class PropertyPlaceholderConfigurerBeansExceptionpublic int getSystemPropertiesMode()
public void setSystemPropertiesModeName(String constantName) throws IllegalArgumentException
setSystemPropertiesModeName in class PropertyPlaceholderConfigurerIllegalArgumentExceptionpublic void setSystemPropertiesMode(int systemPropertiesMode)
setSystemPropertiesMode in class PropertyPlaceholderConfigurerprotected String resolvePlaceholder(String placeholder, Properties props)
resolvePlaceholder in class 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