org.apache.commons.digester
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.
Method Summary | |
---|---|
Object | createObject(Attributes attributes) Factory method called by {@link FactoryCreateRule} to supply an object based on the element's attributes. |
Digester | getDigester() Returns the {@link Digester} that was set by the {@link FactoryCreateRule} upon initialization. |
void | setDigester(Digester digester) Set the {@link Digester} to allow the implementation to do logging, classloading based on the digester's classloader, etc. |
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
Returns the {@link Digester} that was set by the {@link FactoryCreateRule} upon initialization.
Set the {@link Digester} to allow the implementation to do logging, classloading based on the digester's classloader, etc.
Parameters: digester parent Digester object