org.mule.providers.service
Class ConnectorFactory

java.lang.Object
  extended byorg.mule.providers.service.ConnectorFactory

public class ConnectorFactory
extends java.lang.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: 1.1.1.1 $
Author:
Ross Mason

Field Summary
static int ALWAYS_CREATE_CONNECTOR
           
static int GET_OR_CREATE_CONNECTOR
           
static int NEVER_CREATE_CONNECTOR
           
static java.lang.String PROVIDER_SERVICES_PATH
           
static int USE_CONNECTOR
           
 
Constructor Summary
ConnectorFactory()
           
 
Method Summary
static UMOConnector createConnector(UMOEndpointURI url)
          Creates an uninitialied connector from the provided MuleEndpointURI.
static UMOEndpoint createEndpoint(UMOEndpointURI uri, java.lang.String type)
           
static ConnectorServiceDescriptor getServiceDescriptor(java.lang.String protocol)
           
static ConnectorServiceDescriptor getServiceDescriptor(java.lang.String protocol, java.util.Properties overrides)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROVIDER_SERVICES_PATH

public static final java.lang.String PROVIDER_SERVICES_PATH
See Also:
Constant Field Values

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
Constructor Detail

ConnectorFactory

public ConnectorFactory()
Method Detail

createEndpoint

public static UMOEndpoint createEndpoint(UMOEndpointURI uri,
                                         java.lang.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(java.lang.String protocol)
                                                       throws ConnectorFactoryException
Throws:
ConnectorFactoryException

getServiceDescriptor

public static ConnectorServiceDescriptor getServiceDescriptor(java.lang.String protocol,
                                                              java.util.Properties overrides)
                                                       throws ConnectorFactoryException
Throws:
ConnectorFactoryException


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.