Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7821

BridgePropertyPlaceholderConfigurer fails to use custom PropertiesParser

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.13.2
    • 2.13.4, 2.14.2, 2.15.0
    • camel-spring
    • None
    • Unknown

    Description

      A BridgePropertyPlaceholderConfigurer configured to use a custom PropertiesParser like this:

        <bean id="bridgePropertyPlaceholder" class="org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer"
            p:location="classpath:application.properties"
            p:parser-ref="jasyptParser" />
      

      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).

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            mkhl1 Martin Kühl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: