java.lang.Object
org.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DataAbstractionFacadeFactory
protected DataAbstractionFacadeFactory()
throws UnconfiguredException
- Default Constructor.
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.