Last active
January 4, 2016 19:59
-
-
Save cgorshing/8670821 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example; | |
import org.mule.api.MuleEventContext; | |
import org.mule.api.lifecycle.Callable; | |
/** | |
* From the docs | |
* "To enable the component to work directly with the message, | |
* you must implement the Callable interface" | |
* | |
* Use with: | |
* | |
*<component> | |
* <singleton-object class="com.example.DebugInspector"/> | |
*</component> | |
*/ | |
public class DebugInspector implements Callable { | |
public Object onCall(MuleEventContext eventContext) throws Exception { | |
//Flow name context.getFlowConstruct().getName() | |
return eventContext.getMessage(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment