org.apache.ojb.broker.accesslayer
Class ConnectionFactoryFactory

java.lang.Object
  extended by org.apache.ojb.broker.util.factory.ConfigurableFactory
      extended by org.apache.ojb.broker.accesslayer.ConnectionFactoryFactory
All Implemented Interfaces:
Configurable

public class ConnectionFactoryFactory
extends ConfigurableFactory

Factory for ConnectionFactory implementations.
See also ConnectionManagerFactory

Version:
$Id: ConnectionFactoryFactory.java,v 1.1 2007-08-24 22:17:30 ewestfal Exp $

Field Summary
private  ConnectionFactory conFactory
           
private static ConnectionFactoryFactory singleton
           
 
Constructor Summary
ConnectionFactoryFactory()
           
 
Method Summary
 ConnectionFactory createConnectionFactory()
          Returns the used ConnectionFactory implementation.
protected  String getConfigurationKey()
          must be implemented in the concrete factory classes.
static ConnectionFactoryFactory getInstance()
           
 
Methods inherited from class org.apache.ojb.broker.util.factory.ConfigurableFactory
buildArgumentString, configure, createNewInstance, createNewInstance, createNewInstance, getClassToServe, getLogger, setClassToServe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

private static ConnectionFactoryFactory singleton

conFactory

private ConnectionFactory conFactory
Constructor Detail

ConnectionFactoryFactory

public ConnectionFactoryFactory()
Method Detail

getInstance

public static ConnectionFactoryFactory getInstance()

createConnectionFactory

public ConnectionFactory createConnectionFactory()
Returns the used ConnectionFactory implementation. Currently each call returns the same implementation instance.


getConfigurationKey

protected String getConfigurationKey()
Description copied from class: ConfigurableFactory
must be implemented in the concrete factory classes. the configuration key is used to lookup the Class to serve from the OjbConfiguration in configure().

Specified by:
getConfigurationKey in class ConfigurableFactory


Copyright © 2007-2012 The Kuali Foundation. All Rights Reserved.