org.mule.config.annotations.expressions
Annotation Type Groovy
@Target(value=PARAMETER)
@Retention(value=RUNTIME)
@Documented
public @interface Groovy
This allows Groovy codes to be executed on the current message.
Mule will bind a number of objects to the groovy context:
- muleContext - A reference to the MuleContext object.
- eventContext - A reference to the event context. This allows you to dispatch events progammatically from your script.
- message - The current message.
- payload - The payload of the current message. This is just a shortcut to $message.payload.
- service - A reference to the current service object.
- id - The current event ID. This is a UUID created for events in Mule.
- log - A logger that can be used to write to Mule's log file.
|
Optional Element Summary |
boolean |
required
|
value
public abstract String value
required
public abstract boolean required
- Default:
- true
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.