Skip navigation links

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

E17486-04


oracle.adf.share.connection
Class ConnectionTypeRegistry

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


public final class ConnectionTypeRegistry
extends java.lang.Object

Manages the set of ConnectionTypes that are accessible to a specific application. Each available ConnectionType must be registered with the ConnectionRegistry before the resource catalog considers that type to be available for usage.


Constructor Summary
ConnectionTypeRegistry(java.lang.ClassLoader sourceLoader)
          private constructor to force use of getInstance().

 

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
 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)
          Register a provider type with the CatalogManager.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ConnectionTypeRegistry

public ConnectionTypeRegistry(java.lang.ClassLoader sourceLoader)
private constructor to force use of getInstance().

Method Detail

register

public void register(ConnectionType type)
              throws ConnectionException
Register a provider type with the CatalogManager.
Parameters:
type - ProviderType to be registered
Throws:
DuplicateConnectionTypeException - if a connection type with the same ID has already been registered
ConnectionException - if the connection type could not be registered for any other reason (eg connection type id is null)

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

Skip navigation links

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

E17486-04


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