camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "raulvk.soa" <raulvk....@gmail.com>
Subject Re: Groovy Processor
Date Thu, 18 Sep 2008 10:31:02 GMT

Hi James,

Ok, I see.

One thing is puzzling me though. I have come across the following class in
the Camel API: org.apache.camel.builder.script.ScriptBuilder<E>, which
contains a groovy(File) method.

What is this for?

Thanks.



James.Strachan wrote:
> 
> 2008/9/18 raulvk.soa <raulvk.soa@gmail.com>:
>> Hi,
>>
>> I need to use a Groovy Processor but I only seem to be able to find
>> support
>> for Predicates and Expressions on the docs.
>>
>> Is it possible to use Groovy Processors Out-of-the-box, by referencing
>> external .groovy files? If so, how exactly should the process method be
>> implemented?
>>
>> What I am after is actually the GPath XML processing using the XmlSlurper
>> class. It looks like a very agile way to do custom validation on an XML.
> 
> We've no explicit support yet for invoking a script as a processor; we
> should add that.
> 
> In the meantime, if you compile your groovy on the classpath you can
> just refer to the Groovy class in the bean...
> 
>   from("....").bean(SomeClass.class);
> 
> We should maybe have a script endpoint?
> 
>   from("...").to("groovy:foo/bar/Whatnot.groovy");
> 
> -- 
> James
> -------
> http://macstrac.blogspot.com/
> 
> Open Source Integration
> http://open.iona.com
> 
> 

-- 
View this message in context: http://www.nabble.com/Groovy-Processor-tp19549778s22882p19549978.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message