org.apache.camel.spring.spi
Class BridgePropertyPlaceholderConfigurer

java.lang.Object
  extended by org.springframework.core.io.support.PropertiesLoaderSupport
      extended by org.springframework.beans.factory.config.PropertyResourceConfigurer
          extended by org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
              extended by org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer
All Implemented Interfaces:
org.apache.camel.component.properties.PropertiesResolver, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered, org.springframework.core.PriorityOrdered

public class BridgePropertyPlaceholderConfigurer
extends org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
implements org.apache.camel.component.properties.PropertiesResolver

A PropertyPlaceholderConfigurer that bridges Camel's property placeholder with the Spring property placeholder mechanism.


Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE
 
Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport
logger, XML_FILE_EXTENSION
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
BridgePropertyPlaceholderConfigurer()
           
 
Method Summary
protected  void processProperties(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactoryToProcess, Properties props)
           
 Properties resolveProperties(org.apache.camel.CamelContext context, boolean ignoreMissingLocation, String... uri)
           
 void setBeanName(String beanName)
           
 void setResolver(org.apache.camel.component.properties.PropertiesResolver resolver)
           
 
Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
parseStringValue, resolvePlaceholder, resolvePlaceholder, resolveSystemProperty, setBeanFactory, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName, setValueSeparator
 
Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer
convertProperties, convertProperty, convertPropertyValue, getOrder, postProcessBeanFactory, setOrder
 
Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BridgePropertyPlaceholderConfigurer

public BridgePropertyPlaceholderConfigurer()
Method Detail

processProperties

protected void processProperties(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactoryToProcess,
                                 Properties props)
                          throws org.springframework.beans.BeansException
Overrides:
processProperties in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
Throws:
org.springframework.beans.BeansException

setBeanName

public void setBeanName(String beanName)
Specified by:
setBeanName in interface org.springframework.beans.factory.BeanNameAware
Overrides:
setBeanName in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer

resolveProperties

public Properties resolveProperties(org.apache.camel.CamelContext context,
                                    boolean ignoreMissingLocation,
                                    String... uri)
                             throws Exception
Specified by:
resolveProperties in interface org.apache.camel.component.properties.PropertiesResolver
Throws:
Exception

setResolver

public void setResolver(org.apache.camel.component.properties.PropertiesResolver resolver)


Apache CAMEL