Using exchange in PropertiesFunction ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Using exchange in PropertiesFunction ?

rwijngaa
Hi,

Is it possible to get hold of the exchange somehow when apply() is called in
an PropertiesFunction?

Regards
Rino

public static final class MyBeerFunction implements PropertiesFunction {
 
    @Override
    public String getName() {
        return "beer";
    }
 
    @Override
    public String apply(String remainder) {
        return "mock:" + remainder.toLowerCase();
    }
}
Reply | Threaded
Open this post in threaded view
|

Re: Using exchange in PropertiesFunction ?

Claus Ibsen-2
No property placeholders is not Exchange specific, but generic.

On Thu, Aug 20, 2015 at 11:05 AM, rwijngaa
<[hidden email]> wrote:

> Hi,
>
> Is it possible to get hold of the exchange somehow when apply() is called in
> an PropertiesFunction?
>
> Regards
> Rino
>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Using-exchange-in-PropertiesFunction-tp5770848.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition: http://www.manning.com/ibsen2