You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Martin Kühl (JIRA)" <ji...@apache.org> on 2014/09/15 15:50:35 UTC

[jira] [Created] (CAMEL-7821) BridgePropertyPlaceholderConfigurer fails to use custom PropertiesParser

Martin Kühl created CAMEL-7821:
----------------------------------

             Summary: BridgePropertyPlaceholderConfigurer fails to use custom PropertiesParser
                 Key: CAMEL-7821
                 URL: https://issues.apache.org/jira/browse/CAMEL-7821
             Project: Camel
          Issue Type: Bug
          Components: camel-spring
    Affects Versions: 2.13.2
            Reporter: Martin Kühl
            Priority: Minor


A {{BridgePropertyPlaceholderConfigurer}} configured to use a custom {{PropertiesParser}} like this:
{code:}
  <bean id="bridgePropertyPlaceholder" class="org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer"
      p:location="classpath:application.properties"
      p:parser-ref="jasyptParser" />
{code}

fails to actually use the parser to parse properties.

It seems that {{org.apache.camel.spring.CamelContextFactoryBean#initPropertyPlaceholder}}, which is called from {{afterPropertiesSet}}, overwrites the custom parser with the default parser from the properties component (on line 279).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)