org.apache.commons.digester

Class AbstractObjectCreationFactory

public abstract class AbstractObjectCreationFactory extends Object implements ObjectCreationFactory

Abstract base class for ObjectCreationFactory implementations.

Field Summary
protected Digesterdigester
The associated Digester instance that was set up by {@link FactoryCreateRule} upon initialization.
Method Summary
abstract ObjectcreateObject(Attributes attributes)

Factory method called by {@link FactoryCreateRule} to supply an object based on the element's attributes.

DigestergetDigester()

Returns the {@link Digester} that was set by the {@link FactoryCreateRule} upon initialization.

voidsetDigester(Digester digester)

Set the {@link Digester} to allow the implementation to do logging, classloading based on the digester's classloader, etc.

Field Detail

digester

protected Digester digester
The associated Digester instance that was set up by {@link FactoryCreateRule} upon initialization.

Method Detail

createObject

public abstract Object createObject(Attributes attributes)

Factory method called by {@link FactoryCreateRule} to 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

public Digester getDigester()

Returns the {@link Digester} that was set by the {@link FactoryCreateRule} upon initialization.

setDigester

public void setDigester(Digester digester)

Set the {@link Digester} to allow the implementation to do logging, classloading based on the digester's classloader, etc.

Parameters: digester parent Digester object

Copyright 2001-2005 The Apache Software Foundation.