Top Description Methods
org.apache.tomcat.util.digester

public Interface ObjectCreationFactory

Known Direct Implementers
org.apache.tomcat.util.digester.AbstractObjectCreationFactory
Imports
org.xml.sax.Attributes

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

AbstractObjectCreationFactory is an abstract implementation suitable for creating anonymous ObjectCreationFactory implementations.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the created object
createObject
(Attributes
the element's attributes
attributes
)

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

public Digester

Returns:

the Digester that was set by the FactoryCreateRule upon initialization.
getDigester
()

public void
setDigester(Digester
parent Digester object
digester
)

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

Method Detail

createObjectback to summary
public Object createObject(Attributes attributes) throws Exception

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

Parameters
attributes:Attributes

the element's attributes

Returns:Object

the created object

Exceptions
Exception:
any exception thrown will be propagated upwards
getDigesterback to summary
public Digester getDigester()
Returns:Digester

the Digester that was set by the FactoryCreateRule upon initialization.

setDigesterback to summary
public void setDigester(Digester digester)

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

Parameters
digester:Digester

parent Digester object