camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-7821) BridgePropertyPlaceholderConfigurer fails to use custom PropertiesParser
Date Sun, 15 Feb 2015 15:21:12 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-7821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14322021#comment-14322021
] 

Claus Ibsen commented on CAMEL-7821:
------------------------------------

Thanks for reporting and the sample

> 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
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.13.4, 2.14.2, 2.15.0
>
>
> 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)

Mime
View raw message