Package org.apache.commons.digester
Interface ObjectCreationFactory
-
- All Known Implementing Classes:
AbstractObjectCreationFactory,DigesterRuleParser.CallMethodRuleFactory,DigesterRuleParser.CallParamRuleFactory,DigesterRuleParser.FactoryCreateRuleFactory,DigesterRuleParser.NodeCreateRuleFactory,DigesterRuleParser.ObjectCreateRuleFactory,DigesterRuleParser.ObjectParamRuleFactory,DigesterRuleParser.SetNestedPropertiesRuleFactory,DigesterRuleParser.SetNextRuleFactory,DigesterRuleParser.SetPropertiesRuleFactory,DigesterRuleParser.SetPropertyRuleFactory,DigesterRuleParser.SetRootRuleFactory,DigesterRuleParser.SetTopRuleFactory
public interface ObjectCreationFactory
Interface for use with
FactoryCreateRule. The rule callscreateObject(org.xml.sax.Attributes)to create an object to be pushed onto theDigesterstack whenever it is matched.AbstractObjectCreationFactoryis an abstract implementation suitable for creating anonymousObjectCreationFactoryimplementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectcreateObject(org.xml.sax.Attributes attributes)Factory method called byFactoryCreateRuleto supply an object based on the element's attributes.DigestergetDigester()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.
-
-
-
Method Detail
-
createObject
java.lang.Object createObject(org.xml.sax.Attributes attributes) throws java.lang.Exception
Factory method called by
FactoryCreateRuleto supply an object based on the element's attributes.- Parameters:
attributes- the element's attributes- Throws:
java.lang.Exception- any exception thrown will be propagated upwards
-
getDigester
Digester getDigester()
Returns the
Digesterthat was set by theFactoryCreateRuleupon initialization.
-
setDigester
void setDigester(Digester digester)
Set the
Digesterto allow the implementation to do logging, classloading based on the digester's classloader, etc.- Parameters:
digester- parent Digester object
-
-