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 , Tom Cunningham
See Also:
Serialized Form

Field Summary
static java.lang.String ADMIN_ENDPOINT_PROPERTY
           
static java.lang.String AUTHENTICATIONMETHOD_PROPERTY
           
static java.lang.String LIFECYCLEMANAGER_PROPERTY
           
static java.lang.String MAXROWS_PROPERTY
           
static java.lang.String POSTALADDRESSSCHEME_PROPERTY
           
static java.lang.String PROTOCOL_HANDLER_PROPERTY
           
static java.lang.String QUERYMANAGER_PROPERTY
           
static java.lang.String SECURITY_PROVIDER_PROPERTY
           
static java.lang.String SECURITYMANAGER_PROPERTY
           
static java.lang.String SEMANTICEQUIVALENCES_PROPERTY
           
static java.lang.String TRANSPORT_CLASS_PROPERTY
           
static java.lang.String UDDI_NAMESPACE_PROPERTY
           
static java.lang.String UDDI_VERSION_PROPERTY
           
 
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.util.Properties getProperties()
          Returns a value copy of the properties that will be used to create a Connections.
static javax.xml.registry.ConnectionFactory newInstance()
           
 void setProperties(java.util.Properties properties)
          Update the properties used by this ConnectionFactory to obtain a connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUERYMANAGER_PROPERTY

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

LIFECYCLEMANAGER_PROPERTY

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

SECURITYMANAGER_PROPERTY

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

SEMANTICEQUIVALENCES_PROPERTY

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

POSTALADDRESSSCHEME_PROPERTY

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

AUTHENTICATIONMETHOD_PROPERTY

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

MAXROWS_PROPERTY

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

ADMIN_ENDPOINT_PROPERTY

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

TRANSPORT_CLASS_PROPERTY

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

SECURITY_PROVIDER_PROPERTY

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

PROTOCOL_HANDLER_PROPERTY

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

UDDI_VERSION_PROPERTY

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

UDDI_NAMESPACE_PROPERTY

public static final java.lang.String UDDI_NAMESPACE_PROPERTY
See Also:
Constant Field Values
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()


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.