org.apache.ws.scout.registry
Class ConnectionFactoryImpl

java.lang.Object
  extended by javax.xml.registry.ConnectionFactory
      extended by org.apache.ws.scout.registry.ConnectionFactoryImpl
All Implemented Interfaces:
Serializable

public class ConnectionFactoryImpl
extends ConnectionFactory
implements Serializable

Our implmentation of javax.xml.registry.ConnectionFactory. Also exposes the properties as JavaBean properties to ease use with a managed environment such as an application server.

Author:
Anil Saldhana , Jeremy Boynes
See Also:
Serialized Form

Constructor Summary
ConnectionFactoryImpl()
          Public no-arg constructor so that this ConnectionFactory can be instantiated by the JAXR ConnectionFactory;
 
Method Summary
 Connection createConnection()
           
 FederatedConnection createFederatedConnection(Collection collection)
           
 String getAuthenticationMethod()
           
 String getLifeCycleManagerURL()
           
 Integer getMaxRows()
           
 String getPostalAddressScheme()
           
 Properties getProperties()
          Returns a value copy of the properties that will be used to create a Connections.
 String getQueryManagerURL()
           
 String getSemanticEquivalences()
           
 String getTransportClass()
           
static ConnectionFactory newInstance()
           
 void setAuthenticationMethod(String authenticationMethod)
           
 void setLifeCycleManagerURL(String lifeCycleManagerURL)
           
 void setMaxRows(Integer maxRows)
           
 void setPostalAddressScheme(String postalAddressScheme)
           
 void setProperties(Properties properties)
          Update the properties used by this ConnectionFactory to obtain a connection.
 void setQueryManagerURL(String queryManagerURL)
           
 void setSemanticEquivalences(String semanticEquivalences)
           
 void setTransportClass(String transportClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionFactoryImpl

public ConnectionFactoryImpl()
Public no-arg constructor so that this ConnectionFactory can be instantiated by the JAXR ConnectionFactory;

Method Detail

createConnection

public Connection createConnection()
                            throws JAXRException
Specified by:
createConnection in class ConnectionFactory
Throws:
JAXRException

createFederatedConnection

public FederatedConnection createFederatedConnection(Collection collection)
                                              throws JAXRException
Specified by:
createFederatedConnection in class ConnectionFactory
Throws:
JAXRException

getProperties

public Properties getProperties()
Returns a value copy of the properties that will be used to create a Connections. Operations on this Properties objects will not affect this ConnectionFactory; use setProperties(Properties) to save changes.

Specified by:
getProperties in class ConnectionFactory
Returns:
a Properties object containing the properies that will be used to create Connection

setProperties

public void setProperties(Properties properties)
Update the properties used by this ConnectionFactory to obtain a connection.

Specified by:
setProperties in class ConnectionFactory
Parameters:
properties - the new properties for this ConnectionFactory

newInstance

public static ConnectionFactory newInstance()

getAuthenticationMethod

public String getAuthenticationMethod()

setAuthenticationMethod

public void setAuthenticationMethod(String authenticationMethod)

getLifeCycleManagerURL

public String getLifeCycleManagerURL()

setLifeCycleManagerURL

public void setLifeCycleManagerURL(String lifeCycleManagerURL)

getMaxRows

public Integer getMaxRows()

setMaxRows

public void setMaxRows(Integer maxRows)

getPostalAddressScheme

public String getPostalAddressScheme()

setPostalAddressScheme

public void setPostalAddressScheme(String postalAddressScheme)

getQueryManagerURL

public String getQueryManagerURL()

setQueryManagerURL

public void setQueryManagerURL(String queryManagerURL)

getSemanticEquivalences

public String getSemanticEquivalences()

setSemanticEquivalences

public void setSemanticEquivalences(String semanticEquivalences)

getTransportClass

public String getTransportClass()

setTransportClass

public void setTransportClass(String transportClass)


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.