T
- The object type will be instantiate by this factory.public abstract class AbstractObjectCreationFactory<T> extends Object implements ObjectCreationFactory<T>
ObjectCreationFactory
implementations.Constructor and Description |
---|
AbstractObjectCreationFactory() |
Modifier and Type | Method and Description |
---|---|
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. |
public AbstractObjectCreationFactory()
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 attributesException
- 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 objectCopyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.