May be "file:groovy:/path"?
Because "groovy:<expression>" could be used for inline expression then.
Vadim.
James Strachan wrote:
2008/9/18 raulvk.soa <[EMAIL PROTECTED]>:
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");