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

public abstract Class AbstractObjectCreationFactory

extends Object
implements ObjectCreationFactory
Class Inheritance
All Implemented Interfaces
org.apache.tomcat.util.digester.ObjectCreationFactory
Known Direct Subclasses
org.apache.catalina.users.MemoryGroupCreationFactory, org.apache.catalina.users.MemoryRoleCreationFactory, org.apache.catalina.users.MemoryUserCreationFactory
Imports
org.xml.sax.Attributes

Abstract base class for ObjectCreationFactory implementations.

Field Summary

Modifier and TypeField and Description
private Digester
digester

The associated Digester instance that was set up by FactoryCreateRule upon initialization.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract Object
createObject(Attributes
the element's attributes
attributes
)

Redeclares org.apache.tomcat.util.digester.ObjectCreationFactory.createObject.

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

public Digester
getDigester()

Implements org.apache.tomcat.util.digester.ObjectCreationFactory.getDigester.

Returns the Digester that was set by the FactoryCreateRule upon initialization.

public void
setDigester(Digester
parent Digester object
digester
)

Implements org.apache.tomcat.util.digester.ObjectCreationFactory.setDigester.

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

digesterback to summary
private Digester digester

The associated Digester instance that was set up by FactoryCreateRule upon initialization.

Constructor Detail

AbstractObjectCreationFactoryback to summary
public AbstractObjectCreationFactory()

Method Detail

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

Redeclares org.apache.tomcat.util.digester.ObjectCreationFactory.createObject.

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

Parameters
attributes:Attributes

the element's attributes

Returns:Object

Doc from org.apache.tomcat.util.digester.ObjectCreationFactory.createObject.

the created object

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

Implements org.apache.tomcat.util.digester.ObjectCreationFactory.getDigester.

Returns the Digester that was set by the FactoryCreateRule upon initialization.

Returns:Digester

Doc from org.apache.tomcat.util.digester.ObjectCreationFactory.getDigester.

the Digester that was set by the FactoryCreateRule upon initialization.

Annotations
@Override
setDigesterback to summary
public void setDigester(Digester digester)

Implements org.apache.tomcat.util.digester.ObjectCreationFactory.setDigester.

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

Parameters
digester:Digester

parent Digester object

Annotations
@Override