Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 2 (11.1.2.1.0)

E17486-02

oracle.adf.share.connection
Class ConnectionTypeManager

java.lang.Object
  extended by oracle.adf.share.connection.ConnectionTypeManager

public final class ConnectionTypeManager
extends java.lang.Object

Manages the set of ConnectionTypes that are available in the deployed environment. Each available ConnectionType must be registered with the ConnectionTypeManager before the resource catalog considers that type to be available for usage.


Method Summary
 ConnectionType getConnectionType(java.lang.String id)
          Find the ConnectionType with the specified connection id
 java.util.Map getConnectionTypes()
          Get a Map containing all the registered connection types
static ConnectionTypeManager getInstance()
          Returns the ProviderTypeManager instance.
 ConnectionType lookup(java.lang.Class connectionCls)
          Find the ConnectionType for the specified connection class
 ConnectionType lookup(javax.naming.Referenceable connection)
          Find the ConnectionType for the specified connection instance
 ConnectionType lookup(java.lang.String connectionClassName)
           
 void register(ConnectionType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ConnectionTypeManager getInstance()
Returns the ProviderTypeManager instance.

Returns:
the ProviderTypeManager

register

public void register(ConnectionType type)
              throws ConnectionException
Throws:
ConnectionException

getConnectionType

public ConnectionType getConnectionType(java.lang.String id)
Find the ConnectionType with the specified connection id

Parameters:
id - the ID of the required connection type
Returns:
the ConnectionType with the specified ID or null if a matching connection type cannot be found

lookup

public ConnectionType lookup(javax.naming.Referenceable connection)
Find the ConnectionType for the specified connection instance

Parameters:
connection - the Referenceable for which a ConnectionType is being requested
Returns:
the ConnectionType for the specified connection or null if the connection does not match any of the registered types.

lookup

public ConnectionType lookup(java.lang.Class connectionCls)
Find the ConnectionType for the specified connection class

Parameters:
connectionCls - the connection class for which a ConnectionType is being requested
Returns:
the ConnectionType for the specified connection class or null if the connection class does not match any of the registered types.

lookup

public ConnectionType lookup(java.lang.String connectionClassName)

getConnectionTypes

public java.util.Map getConnectionTypes()
Get a Map containing all the registered connection types

Returns:
A Map containing all the known connection types

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 2 (11.1.2.1.0)

E17486-02

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