[
https://issues.apache.org/jira/browse/CAMEL-10417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15607824#comment-15607824
]
Luca Burgazzoli commented on CAMEL-10417:
-----------------------------------------
I see the point and I'm experimenting with this option at the moment so I'm
unsure if it will hit the main repo.
The goal was to make it easy to manage a number of properties like some from
blueprint, others from classspath and files so have them listed as nested
elements makes it easier to spot what is included rather than a long string.
An alternative option would be to have a sort of CompositeProperty that can be
managhe a number of location and can be referenced with ref resolver.
> camel-properties: Support adding location using child nodes of
> propertyPlaceholder element
> ------------------------------------------------------------------------------------------
>
> Key: CAMEL-10417
> URL: https://issues.apache.org/jira/browse/CAMEL-10417
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Luca Burgazzoli
> Assignee: Luca Burgazzoli
> Priority: Minor
> Fix For: 2.19.0
>
>
> As today to define a list of locations you should separate them with a comma:
> {code:xml}
> <propertyPlaceholder id="properties"
> location="com/mycompany/myprop.properties,ref:myProperties"/>
> {code}
> It would be nice to have a way to set the locations *also* with a child nodes
> of propertyPlaceholder element, like:
> {code:xml}
> <propertyPlaceholder id="properties">
> <propertiesLocation location="com/mycompany/myprop.properties/>
> <propertiesLocation location="ref:myProperties/>
> </propertyPlaceholder>
> {code}
> These locations will be added to the locations defined in the
> propertyPlaceholder element.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)