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 java.lang.Object implements ObjectCreationFactory Abstract base class for ObjectCreationFactoryimplementations.
- 
- 
Constructor SummaryConstructors Constructor Description AbstractObjectCreationFactory()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.ObjectcreateObject(org.xml.sax.Attributes attributes)Factory method called byFactoryCreateRuleto supply an object based on the element's attributes.DigestergetDigester()Returns theDigesterthat was set by theFactoryCreateRuleupon initialization.voidsetDigester(Digester digester)Set theDigesterto allow the implementation to do logging, classloading based on the digester's classloader, etc.
 
- 
- 
- 
Method Detail- 
createObjectpublic abstract java.lang.Object createObject(org.xml.sax.Attributes attributes) throws java.lang.ExceptionFactory method called by FactoryCreateRuleto supply an object based on the element's attributes.- Specified by:
- createObjectin interface- ObjectCreationFactory
- Parameters:
- attributes- the element's attributes
- Returns:
- the created object
- Throws:
- java.lang.Exception- any exception thrown will be propagated upwards
 
 - 
getDigesterpublic Digester getDigester() Returns the Digesterthat was set by theFactoryCreateRuleupon initialization.- Specified by:
- getDigesterin interface- ObjectCreationFactory
- Returns:
- the Digesterthat was set by theFactoryCreateRuleupon initialization.
 
 - 
setDigesterpublic void setDigester(Digester digester) Set the Digesterto allow the implementation to do logging, classloading based on the digester's classloader, etc.- Specified by:
- setDigesterin interface- ObjectCreationFactory
- Parameters:
- digester- parent Digester object
 
 
- 
 
-