net.sf.csutils.core.registry
Interface ConnectionProvider

All Known Implementing Classes:
DefaultConnectionProvider, JaxMasConnectionProvider

public interface ConnectionProvider

A connection provider is able to create a (possibly new) CentraSite connection. Instances of this class are typically passed to objects, which might need a CentraSite connection, but not necessarily so. For example, if an importer or exporter detects an error, then it won't require a connection, if it does in its normal operation.


Method Summary
 javax.xml.registry.Connection getConnection()
          Returns a registry connection.
 

Method Detail

getConnection

javax.xml.registry.Connection getConnection()
                                            throws javax.xml.registry.JAXRException
Returns a registry connection. A new connection is created, if required.

Returns:
The registry connection.
Throws:
javax.xml.registry.JAXRException - The operation failed.


Copyright © 2009-2010. All Rights Reserved.