|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.alg.DefaultFactory<T>
T
- type of instances that are created by this factorypublic class DefaultFactory<T>
A factory that uses the default constructor to create instances.
Constructor Summary | |
---|---|
DefaultFactory(Class<? extends T> theclazz)
Creates an instance factory for the given class. |
Method Summary | |
---|---|
T |
create()
Create an instance of the type that is managed by this factory. |
void |
destroy(T obj)
Destroy a given instance by freeing all resources that are contained. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFactory(Class<? extends T> theclazz)
theclazz
- the class for which instances shall be createdMethod Detail |
---|
public T create()
create
in interface IFactory<T>
public void destroy(T obj)
destroy
in interface IFactory<T>
obj
- the instance to destroy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |