Package com.sun.xml.registry.common
Class ConnectionFactoryImpl
- java.lang.Object
-
- javax.xml.registry.ConnectionFactory
-
- com.sun.xml.registry.common.ConnectionFactoryImpl
-
- All Implemented Interfaces:
Referenceable
public class ConnectionFactoryImpl extends javax.xml.registry.ConnectionFactory implements Referenceable
Class Declaration for Class1- Author:
-
-
Constructor Summary
Constructors Constructor Description ConnectionFactoryImpl()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.xml.registry.ConnectioncreateConnection()Create a named connection.javax.xml.registry.FederatedConnectioncreateFederatedConnection(Collection connections)Create a Federation.PropertiesgetProperties()ReferencegetReference()Retrieve the reference of this object.voidsetProperties(Properties properties)
-
-
-
Method Detail
-
setProperties
public void setProperties(Properties properties) throws javax.xml.registry.JAXRException
- Specified by:
setPropertiesin classjavax.xml.registry.ConnectionFactory- Throws:
javax.xml.registry.JAXRException
-
getProperties
public Properties getProperties() throws javax.xml.registry.JAXRException
- Specified by:
getPropertiesin classjavax.xml.registry.ConnectionFactory- Throws:
javax.xml.registry.JAXRException
-
createConnection
public javax.xml.registry.Connection createConnection() throws javax.xml.registry.JAXRExceptionCreate a named connection. Such a connection can be used to communicate with a JAXR provider.- Specified by:
createConnectionin classjavax.xml.registry.ConnectionFactory- Throws:
javax.xml.registry.JAXRException
-
createFederatedConnection
public javax.xml.registry.FederatedConnection createFederatedConnection(Collection connections) throws javax.xml.registry.JAXRException
Create a Federation.- Specified by:
createFederatedConnectionin classjavax.xml.registry.ConnectionFactory- Parameters:
properties- configuration properties that are either specified by JAXR or provider specific.- Capability Level: 0
connections- Is a Collection of Connection objects. Note that Connection objects may also be Federation objects.- Throws:
javax.xml.registry.JAXRException
-
getReference
public Reference getReference() throws NamingException
Retrieve the reference of this object. Used when binding the object to a registry.- Specified by:
getReferencein interfaceReferenceable- Returns:
- Reference to the object.
- Throws:
NamingException
-
-