Contact Us 1-800-596-4880

@Mule Annotation

Mule Runtime Engine versions 3.5, 3.6, and 3.7 reached End of Life on or before January 25, 2020. For more information, contact your Customer Success Manager to determine how you can migrate to the latest Mule version.

A parameter injection annotation that can be used on component entry points and transformer methods, this annotation can be used to execute a Mule Expression on the message payload with the result being passed into the method.

public class MyComponent {
    public Object process(@Mule("message.payload") String payload) {
        // do stuff
    }
}

Mule defines a micro language for accessing the current message and Mule environment, more information can be found here.