public class DefaultInterfaceBinding extends Object implements InterfaceBinding, MessagingExceptionHandlerAware, Initialisable
Modifier and Type | Field and Description |
---|---|
protected static Log |
logger |
protected OutboundRouter |
outboundRouter |
PHASE_NAME
Constructor and Description |
---|
DefaultInterfaceBinding() |
Modifier and Type | Method and Description |
---|---|
Object |
createProxy(Object target)
This wires the dynamic proxy to the service object.
|
ImmutableEndpoint |
getEndpoint() |
Class<?> |
getInterface() |
Class<?> |
getInterfaceClass() |
String |
getMethod() |
void |
initialise()
Method used to perform any initialisation work.
|
MuleEvent |
process(MuleEvent event)
This method is responsible for routing the Message via the MuleSession.
|
void |
setEndpoint(ImmutableEndpoint e) |
void |
setInterface(Class<?> interfaceClass) |
void |
setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler) |
void |
setMethod(String methodName) |
String |
toString() |
protected static final Log logger
protected OutboundRouter outboundRouter
public MuleEvent process(MuleEvent event) throws MuleException
InterfaceBinding
process
in interface InterfaceBinding
process
in interface MessageProcessor
event
- MuleEvent to be processedMuleException
FilteringOutboundRouter
,
ExceptionBasedRouter
,
MulticastingRouter
public void setInterface(Class<?> interfaceClass)
setInterface
in interface InterfaceBinding
public Class<?> getInterface()
getInterface
in interface InterfaceBinding
public String getMethod()
getMethod
in interface InterfaceBinding
public void setMethod(String methodName)
setMethod
in interface InterfaceBinding
public Object createProxy(Object target)
InterfaceBinding
createProxy
in interface InterfaceBinding
public void setEndpoint(ImmutableEndpoint e) throws MuleException
setEndpoint
in interface InterfaceBinding
MuleException
public Class<?> getInterfaceClass()
public ImmutableEndpoint getEndpoint()
getEndpoint
in interface InterfaceBinding
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 void setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler)
setMessagingExceptionHandler
in interface MessagingExceptionHandlerAware
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.