public class SpringRemoteInvokerComponent extends Object implements Initialisable, Callable
PHASE_NAME
Constructor and Description |
---|
SpringRemoteInvokerComponent() |
Modifier and Type | Method and Description |
---|---|
org.springframework.remoting.support.RemoteInvocationExecutor |
getRemoteInvocationExecutor() |
Object |
getServiceBean() |
Class |
getServiceClass() |
Class |
getServiceInterface() |
void |
initialise()
Method used to perform any initialisation work.
|
boolean |
isRegisterTraceInterceptor() |
Object |
onCall(MuleEventContext eventContext)
Passes the event to the listener
|
void |
setRegisterTraceInterceptor(boolean registerTraceInterceptor) |
void |
setRemoteInvocationExecutor(org.springframework.remoting.support.RemoteInvocationExecutor remoteInvocationExecutor) |
void |
setServiceBean(Object serviceBean) |
void |
setServiceClass(Class serviceClass) |
void |
setServiceInterface(Class serviceInterface) |
public void initialise() throws InitialisationException
Initialisable
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 shutdownRecoverableException
- if an error occurs that can be recovered frompublic Class getServiceClass()
public void setServiceClass(Class serviceClass)
public Object getServiceBean()
public void setServiceBean(Object serviceBean)
public Class getServiceInterface()
public void setServiceInterface(Class serviceInterface)
public boolean isRegisterTraceInterceptor()
public void setRegisterTraceInterceptor(boolean registerTraceInterceptor)
public org.springframework.remoting.support.RemoteInvocationExecutor getRemoteInvocationExecutor()
public void setRemoteInvocationExecutor(org.springframework.remoting.support.RemoteInvocationExecutor remoteInvocationExecutor)
public Object onCall(MuleEventContext eventContext) throws Exception
Callable
onCall
in interface Callable
eventContext
- 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–2016 MuleSoft, Inc.. All rights reserved.