org.apache.commons.digester
Class AbstractObjectCreationFactory
java.lang.Objectorg.apache.commons.digester.AbstractObjectCreationFactory
- ObjectCreationFactory
public abstract class AbstractObjectCreationFactory
extends java.lang.Object
Abstract base class for ObjectCreationFactory
implementations.
digester
protected Digester digester
The associated
Digester instance that was set up by
FactoryCreateRule upon initialization.
createObject
public abstract Object createObject(Attributes attributes)
throws Exception Factory method called by
FactoryCreateRule to supply an
object based on the element's attributes.
- createObject in interface ObjectCreationFactory
attributes - the element's attributes
setDigester
public void setDigester(Digester digester)
Set the
Digester to allow the implementation to do logging,
classloading based on the digester's classloader, etc.
- setDigester in interface ObjectCreationFactory
digester - parent Digester object
Copyright 2001-2005 The Apache Software Foundation.