public abstract class AbstractObjectCreationFactory extends java.lang.Object implements ObjectCreationFactory
Abstract base class for ObjectCreationFactory
implementations.
| Constructor and Description |
|---|
AbstractObjectCreationFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Object |
createObject(org.xml.sax.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 abstract java.lang.Object createObject(org.xml.sax.Attributes attributes)
throws java.lang.Exception
Factory method called by FactoryCreateRule to supply an
object based on the element's attributes.
createObject in interface ObjectCreationFactoryattributes - the element's attributesjava.lang.Exception - any exception thrown will be propagated upwardspublic Digester getDigester()
Returns the Digester that was set by the
FactoryCreateRule upon initialization.
getDigester in interface ObjectCreationFactoryDigester that was set by the
FactoryCreateRule upon initialization.public void setDigester(Digester digester)
Set the Digester to allow the implementation to do logging,
classloading based on the digester's classloader, etc.
setDigester in interface ObjectCreationFactorydigester - parent Digester objectCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.