Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.enableit.db.daf
Class DataAbstractionFacadeFactory  view DataAbstractionFacadeFactory download DataAbstractionFacadeFactory.java

java.lang.Object
  extended byorg.enableit.db.daf.DataAbstractionFacadeFactory

public class DataAbstractionFacadeFactory
extends java.lang.Object

Factory for DataAbstrationFacades. This class relies on an XML resource file named data-abstraction.xml to map registered Object types to data persistence capabilities of classes implementing the DataAbstractionFacade interface.


Field Summary
protected static org.enableit.db.daf.conf.DataAbstraction config
           
static java.lang.String CONFIG_FILENAME
           
private static org.apache.log4j.Category logger
          The Log4J Category doing the logging.
protected static DataAbstractionFacadeFactory me
           
 
Constructor Summary
protected DataAbstractionFacadeFactory()
          Default Constructor.
 
Method Summary
static DataAbstractionFacade getInstance(java.lang.Class beanType)
          Return the appropriate instance of DataAbstractionFacade for the Class received.
static DataAbstractionFacade getInstance(java.lang.Object bean)
          Return the appropriate instance of DataAbstractionFacade for the Object type received.
static DataAbstractionFacade getInstance(org.enableit.db.daf.conf.ProviderDetails pd)
          Return the appropriate instance of DataAbstractionFacade using the PersistenceProviderDetails received.
protected  void init()
          Initialise the Factory from the configuration file obtained as a resource from this class' ClassLoader.
static void init(java.net.URL configUrl)
          Initialise the Factory from the configuration file received as an URL parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

me

protected static DataAbstractionFacadeFactory me

config

protected static org.enableit.db.daf.conf.DataAbstraction config

logger

private static org.apache.log4j.Category logger
The Log4J Category doing the logging.


CONFIG_FILENAME

public static final java.lang.String CONFIG_FILENAME
See Also:
Constant Field Values
Constructor Detail

DataAbstractionFacadeFactory

protected DataAbstractionFacadeFactory()
                                throws UnconfiguredException
Default Constructor.

Method Detail

init

public static void init(java.net.URL configUrl)
                 throws UnconfiguredException
Initialise the Factory from the configuration file received as an URL parameter.


init

protected void init()
             throws UnconfiguredException
Initialise the Factory from the configuration file obtained as a resource from this class' ClassLoader.


getInstance

public static DataAbstractionFacade getInstance(java.lang.Object bean)
                                         throws UnconfiguredException,
                                                TypeUnconfiguredException
Return the appropriate instance of DataAbstractionFacade for the Object type received.


getInstance

public static DataAbstractionFacade getInstance(java.lang.Class beanType)
                                         throws UnconfiguredException,
                                                TypeUnconfiguredException
Return the appropriate instance of DataAbstractionFacade for the Class received.


getInstance

public static DataAbstractionFacade getInstance(org.enableit.db.daf.conf.ProviderDetails pd)
Return the appropriate instance of DataAbstractionFacade using the PersistenceProviderDetails received.