Class AbstractObjectCreationFactory
java.lang.Object
org.apache.commons.digester.AbstractObjectCreationFactory
- All Implemented Interfaces:
ObjectCreationFactory
- Direct Known Subclasses:
DigesterRuleParser.CallMethodRuleFactory, DigesterRuleParser.CallParamRuleFactory, DigesterRuleParser.FactoryCreateRuleFactory, DigesterRuleParser.NodeCreateRuleFactory, DigesterRuleParser.ObjectCreateRuleFactory, DigesterRuleParser.ObjectParamRuleFactory, DigesterRuleParser.SetNestedPropertiesRuleFactory, DigesterRuleParser.SetNextRuleFactory, DigesterRuleParser.SetPropertiesRuleFactory, DigesterRuleParser.SetPropertyRuleFactory, DigesterRuleParser.SetRootRuleFactory, DigesterRuleParser.SetTopRuleFactory
Abstract base class for ObjectCreationFactory
implementations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DigesterThe associatedDigesterinstance that was set up byFactoryCreateRuleupon initialization. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ObjectcreateObject(Attributes attributes) Factory method called byFactoryCreateRuleto supply an object based on the element's attributes.Returns theDigesterthat was set by theFactoryCreateRuleupon initialization.voidsetDigester(Digester digester) Set theDigesterto allow the implementation to do logging, classloading based on the digester's classloader, etc.
-
Field Details
-
digester
The associatedDigesterinstance that was set up byFactoryCreateRuleupon initialization.
-
-
Constructor Details
-
AbstractObjectCreationFactory
public AbstractObjectCreationFactory()
-
-
Method Details
-
createObject
Factory method called by
FactoryCreateRuleto supply an object based on the element's attributes.- Specified by:
createObjectin interfaceObjectCreationFactory- Parameters:
attributes- the element's attributes- Throws:
Exception- any exception thrown will be propagated upwards
-
getDigester
Returns the
Digesterthat was set by theFactoryCreateRuleupon initialization.- Specified by:
getDigesterin interfaceObjectCreationFactory
-
setDigester
Set the
Digesterto allow the implementation to do logging, classloading based on the digester's classloader, etc.- Specified by:
setDigesterin interfaceObjectCreationFactory- Parameters:
digester- parent Digester object
-