org.mule.providers.service
Class ConnectorFactory
java.lang.Object
org.mule.providers.service.ConnectorFactory
- public class ConnectorFactory
- extends Object
ConnectorFactory can be used for generically creating endpoints
from an url. Note that for some endpoints, the url alone is not enough to create
the endpoint if a connector for the endpoint has not already been configured with
the Mule Manager.
- Version:
- $Revision: 4259 $
- Author:
- Ross Mason
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROVIDER_SERVICES_PATH
public static final String PROVIDER_SERVICES_PATH
- See Also:
- Constant Field Values
logger
protected static Log logger
- logger used by this class
GET_OR_CREATE_CONNECTOR
public static final int GET_OR_CREATE_CONNECTOR
- See Also:
- Constant Field Values
ALWAYS_CREATE_CONNECTOR
public static final int ALWAYS_CREATE_CONNECTOR
- See Also:
- Constant Field Values
NEVER_CREATE_CONNECTOR
public static final int NEVER_CREATE_CONNECTOR
- See Also:
- Constant Field Values
USE_CONNECTOR
public static final int USE_CONNECTOR
- See Also:
- Constant Field Values
ConnectorFactory
public ConnectorFactory()
createEndpoint
public static UMOEndpoint createEndpoint(UMOEndpointURI uri,
String type)
throws EndpointException
- Throws:
EndpointException
createConnector
public static UMOConnector createConnector(UMOEndpointURI url)
throws ConnectorFactoryException
- Creates an uninitialied connector from the provided MuleEndpointURI. The
scheme is used to determine what kind of connector to create. Any params set
on the uri can be used to initialise bean properties on the created connector.
Note that the initalise method will need to be called on the connector
returned. This is so that developers can control when the connector
initialisation takes place as this is likely to initialse all connecotr
resources.
- Parameters:
url - the MuleEndpointURI url to create the connector with
- Returns:
- a new Connector
- Throws:
ConnectorFactoryException
getServiceDescriptor
public static ConnectorServiceDescriptor getServiceDescriptor(String protocol)
throws ConnectorFactoryException
- Throws:
ConnectorFactoryException
getServiceDescriptor
public static ConnectorServiceDescriptor getServiceDescriptor(String protocol,
Properties overrides)
throws ConnectorFactoryException
- Throws:
ConnectorFactoryException
getOrCreateConnectorByProtocol
public static UMOConnector getOrCreateConnectorByProtocol(UMOEndpointURI uri)
throws ConnectorFactoryException
- Throws:
ConnectorFactoryException
getOrCreateConnectorByProtocol
public static UMOConnector getOrCreateConnectorByProtocol(UMOImmutableEndpoint endpoint)
throws ConnectorFactoryException
- Throws:
ConnectorFactoryException
getConnectorByProtocol
public static UMOConnector getConnectorByProtocol(String protocol)
Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.