[
https://issues.apache.org/activemq/browse/CAMEL-2914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60473#action_60473
]
Claus Ibsen commented on CAMEL-2914:
------------------------------------
Adjusted the SPI a bit to have a {{beforeWrap}} method which ensure the
{{Policy}} contract is kept in the wrap method.
{code}
/**
* Callback invoked before the wrap.
* <p/>
* This allows you to do any custom logic before the processor is wrapped.
For example to
* manipulate the {...@link org.apache.camel.model.ProcessorDefinition
definiton}
*
* @param routeContext the route context
* @param definition the processor definition
*/
void beforeWrap(RouteContext routeContext, ProcessorDefinition<?>
definition);
{code}
trunk: 961251.
> 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.