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

Hadrian Zbarcea commented on CAMEL-2914:
----------------------------------------

There are already a lot of users who use different uris for the endpoints in 
different environments (such as using mock endpoints in test environments). 
Using properties for these uris works very well. What camel lacks is a way to 
not only substitute endpoint uri values, but also parts of the routes do deal 
with slas and what not.

I agree that an spi for manipulating the entire ast is a great improvement, but 
that is not defined yet and this is a simple and non-intrusive solution that 
allows one to enhance (as opposed to pollute) a route. I don't feel strongly 
about modifying the Policy interface, we could leave the DefinitionAwarePolicy 
and deprecate it later if/when the spi will provide a better way.

> ProcessorDefinition aware Policy
> --------------------------------
>
>                 Key: CAMEL-2914
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2914
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Mark Proctor
>            Assignee: Hadrian Zbarcea
>             Fix For: 2.4.0
>
>         Attachments: DefinitionAwarePolicy.diff
>
>
> Currently a Policy cannot change the child processor definitions, and the 
> processor instances are created prior to wrap being called. I would like to 
> see the child Processsor defintions passed to wrap, and the processor 
> instances created afterwards.
> As discussed in this mailing list post:
> http://camel.465427.n5.nabble.com/Using-Policy-to-alter-Definitions-before-building-tt696567.html#a696567

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to