Extension SDK

oracle.jdeveloper.cm
Interface ConnectionFactory

All Known Implementing Classes:
IasRemoteDcmConnectionFactory, JdbcConnectionFactory, JndiConnectionFactory

public interface ConnectionFactory

ConnectionFactory is an interface defined so that ConnectionManager need not know anything about how to actually create connection objects. This allows developers to make use of ConnectionManager without pulling in unused classes when they deploy their projects via the JDeveloper Deployment Wizard.

See Also:
ConnectionManager

Method Summary
 ConnectionWrapper createConnection(ConnectionDescriptor descriptor, ConnectInfoPrompter prompter, ConnectionManager manager)
          creates a ConnectionWrapper object.
 

Method Detail

createConnection

public ConnectionWrapper createConnection(ConnectionDescriptor descriptor,
                                          ConnectInfoPrompter prompter,
                                          ConnectionManager manager)
                                   throws CMException
creates a ConnectionWrapper object. The actual implementations of this interface will most likely return subclasses of ConnectionWrapper which are more appropriate for the actual type of connection.

Parameters:
descriptor - the ConnectionDescriptor which defines the connection properties.
prompter - a ConnectInfoPrompter to use to get the user connection information.
manager - the ConnectionManager responsible for managing the lifecycle of the returned ConnectionWrapper.
Returns:
a ConnectionWrapper appropriate to the type of connection described by descriptor.
Throws:
CMException - is thrown if something goes wrong during the connection creation process.
See Also:
ConnectionDescriptor, ConnectInfoPrompter, ConnectionManager, ConnectionWrapper, CMException

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.