Package org.apache.tomcat.util.digester
Class AbstractObjectCreationFactory
- java.lang.Object
-
- org.apache.tomcat.util.digester.AbstractObjectCreationFactory
-
- All Implemented Interfaces:
ObjectCreationFactory
public abstract class AbstractObjectCreationFactory extends Object implements ObjectCreationFactory
Abstract base class for
ObjectCreationFactory
implementations.
-
-
Field Summary
Fields Modifier and Type Field Description protected Digester
digester
The associatedDigester
instance that was set up byFactoryCreateRule
upon initialization.
-
Constructor Summary
Constructors Constructor Description AbstractObjectCreationFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Object
createObject(Attributes attributes)
Factory method called byFactoryCreateRule
to supply an object based on the element's attributes.Digester
getDigester()
Returns theDigester
that was set by theFactoryCreateRule
upon initialization.void
setDigester(Digester digester)
Set theDigester
to allow the implementation to do logging, classloading based on the digester's classloader, etc.
-
-
-
Field Detail
-
digester
protected Digester digester
The associatedDigester
instance that was set up byFactoryCreateRule
upon initialization.
-
-
Method Detail
-
createObject
public abstract Object createObject(Attributes attributes) throws Exception
Factory method called by
FactoryCreateRule
to supply an object based on the element's attributes.- Specified by:
createObject
in interfaceObjectCreationFactory
- Parameters:
attributes
- the element's attributes- Throws:
Exception
- any exception thrown will be propagated upwards
-
getDigester
public Digester getDigester()
Returns the
Digester
that was set by theFactoryCreateRule
upon initialization.- Specified by:
getDigester
in interfaceObjectCreationFactory
-
setDigester
public void setDigester(Digester digester)
Set the
Digester
to allow the implementation to do logging, classloading based on the digester's classloader, etc.- Specified by:
setDigester
in interfaceObjectCreationFactory
- Parameters:
digester
- parent Digester object
-
-