org.opensubsystems.core.persist.db
Class DatabaseFactoryClassFactory
java.lang.Object
org.opensubsystems.core.util.ClassFactory
org.opensubsystems.core.persist.db.DatabaseFactoryClassFactory
public class DatabaseFactoryClassFactory
- extends ClassFactory
Class factory responsible for instantiation of database factories. The correct
factory is instantiated based on the factory interface or default implementation
and currently active database instantiate correct database factory which should
be used for this database.
- Version:
- $Id: DatabaseFactoryClassFactory.java,v 1.5 2007/01/07 06:14:18 bastafidli Exp $
- Author:
- Miro Halas
- Code reviewer:
- Miro Halas
- Code reviewed:
- 1.3 2004/12/18 06:18:21 bastafidli
|
Method Summary |
protected void |
createDefaultClassNames(java.lang.String strClassIdentifier,
java.lang.String strModifier,
java.util.List lstClassNames)
Create new class name based on the specified identifier and modifier. |
protected void |
verifyInstance(java.lang.Object objInstance)
This method allows derived class to implement verifications if desired
that the instantiated class must satisfy. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseFactoryClassFactory
public DatabaseFactoryClassFactory()
verifyInstance
protected void verifyInstance(java.lang.Object objInstance)
throws OSSException
- This method allows derived class to implement verifications if desired
that the instantiated class must satisfy.
- Overrides:
verifyInstance in class ClassFactory
- Parameters:
objInstance - - instance to verify, can be null
- Throws:
OSSException - - an error has occured (e.g. verification error)
createDefaultClassNames
protected void createDefaultClassNames(java.lang.String strClassIdentifier,
java.lang.String strModifier,
java.util.List lstClassNames)
throws OSSException
- Create new class name based on the specified identifier and modifier.
- Overrides:
createDefaultClassNames in class ClassFactory
- Parameters:
strClassIdentifier - - identifier of the class for which new instance
should be createdstrModifier - - modifier used together with identifier to query
configured class name or null if none is availablelstClassNames - - container to add the possible class names to.
The classes will be tried in order as they are added
to this container.
- Throws:
OSSException - - an error has occured
Copyright © 2003 - 2006 OpenSubsystems s.r.o.