public class MuleConnectorOperationLocator extends Object implements ConnectorOperationLocator, MuleContextAware, Initialisable
ConnectorOperationLocator
that will search
in the mule registry for registered ConnectorOperationLocator
to later provider operations through the use of URLs.PHASE_NAME
Constructor and Description |
---|
MuleConnectorOperationLocator() |
Modifier and Type | Method and Description |
---|---|
void |
initialise()
Method used to perform any initialisation work.
|
MessageProcessor |
locateConnectorOperation(String url,
OperationOptions operationOptions,
MessageExchangePattern exchangePattern)
Lookup for an operation from a connector
|
void |
setMuleContext(MuleContext context) |
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 setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
public MessageProcessor locateConnectorOperation(String url, OperationOptions operationOptions, MessageExchangePattern exchangePattern) throws MuleException
ConnectorOperationLocator
locateConnectorOperation
in interface ConnectorOperationLocator
url
- the URL that identifies the operationoperationOptions
- the options to use to execute the operationexchangePattern
- the exchange pattern to use for the operationMuleException
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.