FileDocCategorySizeDatePackage
ObjectCreationFactory.javaAPI DocApache Tomcat 6.0.142206Fri Jul 20 04:20:36 BST 2007org.apache.tomcat.util.digester

ObjectCreationFactory

public interface ObjectCreationFactory

Interface for use with {@link FactoryCreateRule}. The rule calls {@link #createObject} to create an object to be pushed onto the Digester stack whenever it is matched.

{@link AbstractObjectCreationFactory} is an abstract implementation suitable for creating anonymous ObjectCreationFactory implementations.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.ObjectcreateObject(org.xml.sax.Attributes attributes)

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

param
attributes the element's attributes
throws
Exception any exception thrown will be propagated upwards

public DigestergetDigester()

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

public voidsetDigester(Digester digester)

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

param
digester parent Digester object