Cantaloop CGimlet - API Documentation, Version: 0.2.0, Date: 2002-05-13 21:30 CEST

org.cantaloop.cgimlet
Interface ComponentHandler

All Known Implementing Classes:
BeanHandler, TestHandler

public interface ComponentHandler

Every class that wants the acts as a handler defined in the <handlerdef/> element of the project file must implement this interface.

Version:
0.2.0 ($Revision: 1.5 $)
Author:
David Leuschner, Stefan Heimann

Method Summary
 void configure(org.dom4j.Element configElem)
          Request the handler to configure itself with the given configuration element.
 java.lang.Object generate(org.dom4j.Element root)
          Request the handler to generate the code.
 void init(ProjectGenerator gen)
          Initialize the handler.
 

Method Detail

init

public void init(ProjectGenerator gen)
Initialize the handler.
Parameters:
gen - a ProjectGenerator value

configure

public void configure(org.dom4j.Element configElem)
Request the handler to configure itself with the given configuration element.
Parameters:
configElem - the root element of the configuration section of the handler.

generate

public java.lang.Object generate(org.dom4j.Element root)
Request the handler to generate the code.
Parameters:
root - the root element of the content section of the handler.
Returns:
a handler specific value

Copyright 2001, 2002 Stefan Heimann, David Leuschner. All rights reserved.