|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1) E10686-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.adf.share.connection.ConnectionTypeRegistry
public final class ConnectionTypeRegistry
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 |
---|
public ConnectionTypeRegistry(java.lang.ClassLoader sourceLoader)
Method Detail |
---|
public void register(ConnectionType type) throws ConnectionException
type
- ProviderType
to be registeredDuplicateConnectionTypeException
- if a connection type with the same ID has already been registeredConnectionException
- if the connection type could not be registered for any other reason (eg connection type id is null)public ConnectionType getConnectionType(java.lang.String id)
id
- the ID of the required connection typepublic ConnectionType lookup(javax.naming.Referenceable connection)
connection
- the Referenceable for which a ConnectionType is being requestedpublic ConnectionType lookup(java.lang.Class connectionCls)
connectionCls
- the connection class for which a ConnectionType is being requestedpublic ConnectionType lookup(java.lang.String connectionClassName)
public java.util.Map getConnectionTypes()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1) E10686-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |