|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.digester3.AbstractObjectCreationFactory<T>
T - The object type will be instantiate by this factory.public abstract class AbstractObjectCreationFactory<T>
Abstract base class for ObjectCreationFactory implementations.
| Constructor Summary | |
|---|---|
AbstractObjectCreationFactory()
|
|
| Method Summary | |
|---|---|
abstract T |
createObject(Attributes attributes)
Factory method called by FactoryCreateRule to supply an object based on the element's attributes. |
Digester |
getDigester()
Returns the Digester that was set by the FactoryCreateRule upon initialization. |
void |
setDigester(Digester digester)
Set the Digester to allow the implementation to do logging, classloading based on the digester's
classloader, etc. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractObjectCreationFactory()
| Method Detail |
|---|
public abstract T createObject(Attributes attributes)
throws Exception
FactoryCreateRule to supply an object based on the element's attributes.
createObject in interface ObjectCreationFactory<T>attributes - the element's attributes
Exception - any exception thrown will be propagated upwardspublic Digester getDigester()
Digester that was set by the FactoryCreateRule upon initialization.
getDigester in interface ObjectCreationFactory<T>Digester that was set by the FactoryCreateRule upon initializationpublic void setDigester(Digester digester)
Digester to allow the implementation to do logging, classloading based on the digester's
classloader, etc.
setDigester in interface ObjectCreationFactory<T>digester - parent Digester object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||