org.datanucleus
Class ConnectionFactoryRegistry

java.lang.Object
  extended by org.datanucleus.ConnectionFactoryRegistry

public class ConnectionFactoryRegistry
extends java.lang.Object

Registry for connection factories for this ObjectManagerFactory. Will typically have entries for things like "jdbc/nontx", "jdbc/tx", etc

Version:
$Revision: 1.9 $

Constructor Summary
ConnectionFactoryRegistry(OMFContext ctx)
          Constructor.
 
Method Summary
 ConnectionFactory lookupConnectionFactory(java.lang.String name)
          Method to lookup a connection factory and create it if not yet existing.
 void registerConnectionFactory(java.lang.String name, ConnectionFactory factory)
          Method to register a connection factory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionFactoryRegistry

public ConnectionFactoryRegistry(OMFContext ctx)
Constructor.

Parameters:
ctx - OMFContext
Method Detail

lookupConnectionFactory

public ConnectionFactory lookupConnectionFactory(java.lang.String name)
Method to lookup a connection factory and create it if not yet existing.

Parameters:
name - The lookup name "e.g "jdbc/tx"
Returns:
The connection factory

registerConnectionFactory

public void registerConnectionFactory(java.lang.String name,
                                      ConnectionFactory factory)
Method to register a connection factory

Parameters:
name - The lookup name "e.g "jdbc/tx"
factory - The connection factory


Copyright © 2009. All Rights Reserved.