|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The object type created byt the factory.public interface ObjectCreationFactory<T>
Interface for use with FactoryCreateRule
. The rule calls createObject(org.xml.sax.Attributes)
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 | |
---|---|
T |
createObject(Attributes attributes)
Factory method called by FactoryCreateRule to supply an object based on the element's attributes. |
Digester |
getDigester()
Returns the Digester that was set by the FactoryCreateRule upon initialization. |
void |
setDigester(Digester digester)
Set the Digester to allow the implementation to do logging, classloading based on the digester's
classloader, etc. |
Method Detail |
---|
T createObject(Attributes attributes) throws Exception
FactoryCreateRule
to supply an object based on the element's attributes.
attributes
- the element's attributes
Digester
stack
Exception
- any exception thrown will be propagated upwardsDigester getDigester()
Digester
that was set by the FactoryCreateRule
upon initialization.
Digester
that was set by the FactoryCreateRule
upon initializationvoid setDigester(Digester digester)
Digester
to allow the implementation to do logging, classloading based on the digester's
classloader, etc.
digester
- parent Digester object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |