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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ObjectcreateObject(Attributes attributes) Factory method called byFactoryCreateRuleto supply an object based on the element's attributes.Returns theDigesterthat was set byDigester.addFactoryCreate(java.lang.String, org.apache.tomcat.util.digester.ObjectCreationFactory, boolean)upon initialization.voidsetDigester(Digester digester) Set theDigesterto allow the implementation to do logging, classloading based on the digester's classloader, etc.
-
Constructor Details
-
AbstractObjectCreationFactory
public AbstractObjectCreationFactory()Constructs a new instance of this factory.
-
-
Method Details
-
createObject
Factory method called by
FactoryCreateRuleto supply an object based on the element's attributes.- Specified by:
createObjectin interfaceObjectCreationFactory- Parameters:
attributes- the element's attributes- Returns:
- the created object
- Throws:
Exception- any exception thrown will be propagated upwards
-
getDigester
Returns the
Digesterthat was set byDigester.addFactoryCreate(java.lang.String, org.apache.tomcat.util.digester.ObjectCreationFactory, boolean)upon initialization.- Specified by:
getDigesterin interfaceObjectCreationFactory- Returns:
- the
Digesterthat was set byDigester.addFactoryCreate(java.lang.String, org.apache.tomcat.util.digester.ObjectCreationFactory, boolean)upon initialization.
-
setDigester
Set the
Digesterto allow the implementation to do logging, classloading based on the digester's classloader, etc.- Specified by:
setDigesterin interfaceObjectCreationFactory- Parameters:
digester- parent Digester object
-