|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.components.simple.NoArgsCallWrapper
Constructor Summary | |
NoArgsCallWrapper()
|
Method Summary | |
String |
getDelegateClass()
Getter for property 'delegateClass'. |
Object |
getDelegateInstance()
Getter for property 'delegateInstance'. |
String |
getDelegateMethod()
Getter for property 'delegateMethod'. |
void |
initialise()
Method used to perform any initialisation work. |
Object |
onCall(UMOEventContext context)
Passes the event to the listener |
void |
setDelegateClass(String delegateClass)
Setter for property 'delegateClass'. |
void |
setDelegateInstance(Object delegateInstance)
Setter for property 'delegateInstance'. |
void |
setDelegateMethod(String delegateMethod)
Setter for property 'delegateMethod'. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NoArgsCallWrapper()
Method Detail |
public void initialise() throws InitialisationException
InitialisationException
should be thrown, causing the Mule instance to shutdown. If the error is
recoverable, say by retrying to connect, a RecoverableException
should be thrown. There is no
guarantee that by throwing a Recoverable exception that the Mule instance will not shut down.
initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered frompublic Object onCall(UMOEventContext context) throws Exception
Callable
onCall
in interface Callable
context
- the context of the current event being process
UMOLifecycleAdapter
for the component receives this
object it will first see if the Object is an UMOMessage
if not and the Object is not null a new message will be created using
the returned object as the payload. This new event will then get
published via the configured outbound router if-
setStopFurtherProcessing(true)
wasn't called
on the event context event.Exception
- if the event fails to process properly. If exceptions aren't
handled by the implementation they will be handled by the
exceptionListener associated with the componentpublic Object getDelegateInstance()
public void setDelegateInstance(Object delegateInstance)
delegateInstance
- Value to set for property 'delegateInstance'.public String getDelegateMethod()
public void setDelegateMethod(String delegateMethod)
delegateMethod
- Value to set for property 'delegateMethod'.public String getDelegateClass()
public void setDelegateClass(String delegateClass)
delegateClass
- Value to set for property 'delegateClass'.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |