Package org.apache.tomcat.util.digester
Class AbstractObjectCreationFactory
java.lang.Object
org.apache.tomcat.util.digester.AbstractObjectCreationFactory
- All Implemented Interfaces:
ObjectCreationFactory
Abstract base class for ObjectCreationFactory
implementations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Object
createObject
(Attributes attributes) Factory method called byFactoryCreateRule
to supply an object based on the element's attributes.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.
-
Constructor Details
-
AbstractObjectCreationFactory
public AbstractObjectCreationFactory()
-
-
Method Details
-
createObject
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- Returns:
- the created object
- Throws:
Exception
- any exception thrown will be propagated upwards
-
getDigester
Returns the
Digester
that was set by theFactoryCreateRule
upon initialization.- Specified by:
getDigester
in interfaceObjectCreationFactory
- Returns:
- the
Digester
that was set by theFactoryCreateRule
upon initialization.
-
setDigester
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
-