|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlocal.tomas.util.factory.GenericFactory<P>
P - type of objects the factory producespublic abstract class GenericFactory<P>
A generic factory base class.
| Constructor Summary | |
|---|---|
protected |
GenericFactory()
Default constructor. |
| Method Summary | ||
|---|---|---|
abstract P |
createEntity(org.apache.commons.configuration.Configuration conf)
Create an entity. |
|
static
|
getFactory(Class<X> entityClass,
String name)
Get factory singleton. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected GenericFactory()
| Method Detail |
|---|
public static <X> GenericFactory<X> getFactory(Class<X> entityClass,
String name)
throws FactoryException
X - type of objects the factory producesentityClass - class of objects the factory producesname - fully qualified class name of factory
FactoryException
public abstract P createEntity(org.apache.commons.configuration.Configuration conf)
throws FactoryException
conf - configuration of the entity
FactoryException
|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||