Package org.apache.tomcat.util.digester
Interface ObjectCreationFactory
-
- All Known Implementing Classes:
AbstractObjectCreationFactory
public interface ObjectCreationFactoryInterface for use with
FactoryCreateRule. The rule callscreateObject(org.xml.sax.Attributes)to create an object to be pushed onto theDigesterstack whenever it is matched.AbstractObjectCreationFactoryis an abstract implementation suitable for creating anonymousObjectCreationFactoryimplementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectcreateObject(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
-
createObject
Object createObject(Attributes attributes) throws Exception
Factory method called by
FactoryCreateRuleto supply an object based on the element's attributes.- Parameters:
attributes- the element's attributes- Throws:
Exception- any exception thrown will be propagated upwards
-
getDigester
Digester getDigester()
Returns the
Digesterthat was set by theFactoryCreateRuleupon initialization.
-
-