public class StaticComponent extends Object implements Callable, Initialisable
PHASE_NAME| Constructor and Description |
|---|
StaticComponent() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getData() |
String |
getDataFile() |
String |
getPostfix() |
String |
getPrefix() |
void |
initialise()
Method used to perform any initialisation work.
|
Object |
onCall(MuleEventContext eventContext)
Passes the event to the listener
|
void |
setData(Object data) |
void |
setDataFile(String dataFile) |
void |
setPostfix(String postfix) |
void |
setPrefix(String prefix) |
public void initialise()
throws InitialisationException
InitialisableInitialisationException 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 InitialisableInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered frompublic Object getData()
public void setData(Object data)
public String getDataFile()
public void setDataFile(String dataFile)
public String getPrefix()
public void setPrefix(String prefix)
public String getPostfix()
public void setPostfix(String postfix)
public Object onCall(MuleEventContext eventContext) throws Exception
CallableonCall in interface CallableeventContext - the context of the current event being processLifecycleAdapter for the service receives this
object it will first see if the Object is an MuleMessage
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 serviceCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.