public class DefaultInterfaceBinding extends Object implements InterfaceBinding, MessagingExceptionHandlerAware, Initialisable
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.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 org.apache.commons.logging.Log logger
protected OutboundRouter outboundRouter
public MuleEvent process(MuleEvent event) throws MuleException
InterfaceBindingprocess in interface InterfaceBindingprocess in interface MessageProcessorevent - MuleEvent to be processedMuleExceptionFilteringOutboundRouter,
ExceptionBasedRouter,
MulticastingRouterpublic void setInterface(Class<?> interfaceClass)
setInterface in interface InterfaceBindingpublic Class<?> getInterface()
getInterface in interface InterfaceBindingpublic String getMethod()
getMethod in interface InterfaceBindingpublic void setMethod(String methodName)
setMethod in interface InterfaceBindingpublic Object createProxy(Object target)
InterfaceBindingcreateProxy in interface InterfaceBindingpublic void setEndpoint(ImmutableEndpoint e) throws MuleException
setEndpoint in interface InterfaceBindingMuleExceptionpublic Class<?> getInterfaceClass()
public ImmutableEndpoint getEndpoint()
getEndpoint in interface InterfaceBindingpublic 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 void setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler)
setMessagingExceptionHandler in interface MessagingExceptionHandlerAwareCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.