org.bibop.xml.xforge.components.automation
Class AbstractAutomatedComponent

java.lang.Object
  |
  +--org.bibop.xml.xforge.components.AbstractXForgeComponent
        |
        +--org.bibop.xml.xforge.components.AbstractXForgePoolableComponent
              |
              +--org.bibop.xml.xforge.components.automation.AbstractAutomatedComponent
All Implemented Interfaces:
AutomatedComponent, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.excalibur.pool.Poolable, PrefixesMonitor, XForgeComponent, XMLProducer
Direct Known Subclasses:
DateAutomatedComponent, HelloWorldAutomatedComponent, SQLComponent, XSLComponent

public abstract class AbstractAutomatedComponent
extends AbstractXForgePoolableComponent
implements AutomatedComponent

Extending the AbstractXForgeComponent and implementing PoolClient interface, this class provides a default implementation to set pool and return the Component to the Pool.

Version:
1.0
Author:
Alberto Garoffolo

Field Summary
protected  java.lang.String methodName
           
protected  java.util.Map methods
           
 
Fields inherited from class org.bibop.xml.xforge.components.AbstractXForgeComponent
contentHandler, context, lexicalHandler, log, parameters, po
 
Constructor Summary
AbstractAutomatedComponent()
           
 
Method Summary
protected  java.lang.Object executeMethod(java.lang.String methodName)
           
private  void fillMethods()
           
 void setMethod(java.lang.String methodName)
           
 void toSax()
          Creates the SAX events once processing has finished.
 
Methods inherited from class org.bibop.xml.xforge.components.AbstractXForgeComponent
configure, enableLogging, getActivePrefixes, output, output, setConsumer, setContentHandler, setLexicalHandler, setParameters, setParentPrefixesMonitor, setProcessingOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.bibop.xml.xforge.components.XForgeComponent
setParameters, setProcessingOptions
 
Methods inherited from interface org.bibop.xml.XMLProducer
setConsumer, setContentHandler, setLexicalHandler
 
Methods inherited from interface org.apache.avalon.framework.configuration.Configurable
configure
 
Methods inherited from interface org.bibop.xml.xforge.PrefixesMonitor
getActivePrefixes, setParentPrefixesMonitor
 
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled
enableLogging
 

Field Detail

methods

protected java.util.Map methods

methodName

protected java.lang.String methodName
Constructor Detail

AbstractAutomatedComponent

public AbstractAutomatedComponent()
Method Detail

setMethod

public void setMethod(java.lang.String methodName)
               throws XForgeException
Specified by:
setMethod in interface AutomatedComponent
XForgeException

toSax

public void toSax()
           throws org.xml.sax.SAXException
Description copied from interface: XMLProducer
Creates the SAX events once processing has finished.

Specified by:
toSax in interface XForgeComponent
Throws:
org.xml.sax.SAXException

fillMethods

private void fillMethods()
                  throws org.xml.sax.SAXException
org.xml.sax.SAXException

executeMethod

protected java.lang.Object executeMethod(java.lang.String methodName)
                                  throws java.lang.Throwable
java.lang.Throwable


Copyright © 2003 Bibop Research International. All Rights Reserved.