public class StaticComponent extends Object implements Callable, org.mule.runtime.api.lifecycle.Initialisable, MuleContextAware
| Constructor and Description |
|---|
StaticComponent() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getData() |
String |
getDataFile() |
String |
getPostfix() |
String |
getPrefix() |
void |
initialise() |
Object |
onCall(MuleEventContext eventContext)
Passes the event to the listener
|
void |
setData(Object data) |
void |
setDataFile(String dataFile) |
void |
setMuleContext(MuleContext context) |
void |
setPostfix(String postfix) |
void |
setPrefix(String prefix) |
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic 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 Message 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 one has been configured for the component.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 servicepublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarecontext - the Mule node.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.