| org.mule.api.lifecycle.Callable
All known Subclasses: org.mule.component.simple.BridgeComponent, org.mule.component.simple.LogComponent, org.mule.module.scripting.component.GroovyRefreshableBeanBuilder, org.mule.transport.cxf.CxfServiceComponent, org.mule.tck.functional.FunctionalTestComponent, org.mule.module.spring.events.MuleEventMulticaster, org.mule.example.errorhandler.BusinessErrorManager, org.mule.module.spring.remoting.SpringRemoteInvokerComponent, org.mule.transport.soap.WSProxyService, org.mule.component.builder.AbstractMessageBuilder, org.mule.module.scripting.component.ScriptComponent, org.mule.transport.soap.axis.AxisServiceComponent, org.mule.component.simple.NullComponent, org.mule.tck.functional.FunctionalStreamingTestComponent, org.mule.component.simple.PassThroughComponent, org.mule.component.simple.StaticComponent, org.mule.module.client.remoting.RemoteDispatcherComponent,
Callable | public interface Callable extends EventListener(Code) | | Callable is used to provide UMOs with an interface that supports
event calls. UMO components do not have to implement this interface, though the
onCall method provides an example lifecycle method that is executed
when an event is received for the implementing service.
|
Method Summary | |
Object | onCall(MuleEventContext eventContext) Passes the event to the listener
Parameters: eventContext - the context of the current event being process Object this object can be anything. |
onCall | Object onCall(MuleEventContext eventContext) throws Exception(Code) | | Passes the event to the listener
Parameters: eventContext - the context of the current event being process Object this object can be anything. When theLifecycleAdapter for the service receives thisobject it will first see if the Object is an MuleMessage if not and the Object is not null a new message will be created usingthe returned object as the payload. This new event will then getpublished via the configured outbound router if-- One has been configured for the UMO.
- the
setStopFurtherProcessing(true) wasn't calledon the event context event.
throws: Exception - if the event fails to process properly. If exceptions aren'thandled by the implementation they will be handled by theexceptionListener associated with the service |
|
|