|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.clazzes.util.lifecycle.impl.AbstractObjectFactoryImpl<T>
T
- The type of key used for the factory.public abstract class AbstractObjectFactoryImpl<T>
Abstract base class for ObjectFactory
.
Minimal implementations merely have to override createNew(Object)
.
Constructor Summary | |
---|---|
protected |
AbstractObjectFactoryImpl()
|
Method Summary | |
---|---|
protected abstract ObjectCreatable<T> |
createNew(T key)
|
ObjectCreatable<T> |
get(T key)
Deliver an object for the passed key. |
protected ObjectCreatable<T> |
internalCreateNew(T key)
Concrete implementations should use this method instead of createNew(Object) to retrieve new objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractObjectFactoryImpl()
Method Detail |
---|
protected abstract ObjectCreatable<T> createNew(T key)
protected ObjectCreatable<T> internalCreateNew(T key)
createNew(Object)
to retrieve new objects.
key
- the key describing the object
key
.public ObjectCreatable<T> get(T key)
ObjectFactory
get
in interface ObjectFactory<T>
key
- The key used to identify the object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |