public final class ConnectionTypeManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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)
Deprecated.
use META-INF/rc_ext.xml (runtime) or META-INF/extension.xml
(designtime) to register your adapters.
|
public static ConnectionTypeManager getInstance()
public void register(ConnectionType type) throws ConnectionException
ConnectionException
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()