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:
java.io.Serializable

public class ConnectionFactoryImpl
extends javax.xml.registry.ConnectionFactory
implements java.io.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
 javax.xml.registry.Connection createConnection()
           
 javax.xml.registry.FederatedConnection createFederatedConnection(java.util.Collection collection)
           
 java.lang.String getAuthenticationMethod()
           
 java.lang.String getLifeCycleManagerURL()
           
 java.lang.Integer getMaxRows()
           
 java.lang.String getPostalAddressScheme()
           
 java.util.Properties getProperties()
          Returns a value copy of the properties that will be used to create a Connections.
 java.lang.String getQueryManagerURL()
           
 java.lang.String getSemanticEquivalences()
           
static javax.xml.registry.ConnectionFactory newInstance()
           
 void setAuthenticationMethod(java.lang.String authenticationMethod)
           
 void setLifeCycleManagerURL(java.lang.String lifeCycleManagerURL)
           
 void setMaxRows(java.lang.Integer maxRows)
           
 void setPostalAddressScheme(java.lang.String postalAddressScheme)
           
 void setProperties(java.util.Properties properties)
          Update the properties used by this ConnectionFactory to obtain a connection.
 void setQueryManagerURL(java.lang.String queryManagerURL)
           
 void setSemanticEquivalences(java.lang.String semanticEquivalences)
           
 
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 javax.xml.registry.Connection createConnection()
                                               throws javax.xml.registry.JAXRException
Specified by:
createConnection in class javax.xml.registry.ConnectionFactory
Throws:
javax.xml.registry.JAXRException

createFederatedConnection

public javax.xml.registry.FederatedConnection createFederatedConnection(java.util.Collection collection)
                                                                 throws javax.xml.registry.JAXRException
Specified by:
createFederatedConnection in class javax.xml.registry.ConnectionFactory
Throws:
javax.xml.registry.JAXRException

getProperties

public java.util.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 javax.xml.registry.ConnectionFactory
Returns:
a Properties object containing the properies that will be used to create Connection

setProperties

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

Specified by:
setProperties in class javax.xml.registry.ConnectionFactory
Parameters:
properties - the new properties for this ConnectionFactory

newInstance

public static javax.xml.registry.ConnectionFactory newInstance()

getAuthenticationMethod

public java.lang.String getAuthenticationMethod()

setAuthenticationMethod

public void setAuthenticationMethod(java.lang.String authenticationMethod)

getLifeCycleManagerURL

public java.lang.String getLifeCycleManagerURL()

setLifeCycleManagerURL

public void setLifeCycleManagerURL(java.lang.String lifeCycleManagerURL)

getMaxRows

public java.lang.Integer getMaxRows()

setMaxRows

public void setMaxRows(java.lang.Integer maxRows)

getPostalAddressScheme

public java.lang.String getPostalAddressScheme()

setPostalAddressScheme

public void setPostalAddressScheme(java.lang.String postalAddressScheme)

getQueryManagerURL

public java.lang.String getQueryManagerURL()

setQueryManagerURL

public void setQueryManagerURL(java.lang.String queryManagerURL)

getSemanticEquivalences

public java.lang.String getSemanticEquivalences()

setSemanticEquivalences

public void setSemanticEquivalences(java.lang.String semanticEquivalences)