Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.infohazard.maverick.flow
Class ThrowawayControllerAdapter  view ThrowawayControllerAdapter download ThrowawayControllerAdapter.java

java.lang.Object
  extended byorg.infohazard.maverick.flow.ThrowawayControllerAdapter
All Implemented Interfaces:
Controller, ControllerSingleton

public class ThrowawayControllerAdapter
extends java.lang.Object
implements ControllerSingleton

This adapter masquerades as a singleton controller but actually creates single-use instance controllers. created January 27, 2002

Version:
$Revision: 1.5 $ $Date: 2004/06/27 17:40:55 $

Field Summary
protected  java.lang.Class controllerClass
          class of controller.
 
Constructor Summary
ThrowawayControllerAdapter(java.lang.Class controllerClass)
          Create the adapter.
 
Method Summary
 java.lang.String go(ControllerContext cctx)
          Instantiates a single-use controller, executes it, and returns the result.
 void init(org.jdom.Element controllerNode)
          Currently unused.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controllerClass

protected java.lang.Class controllerClass
class of controller.

Constructor Detail

ThrowawayControllerAdapter

public ThrowawayControllerAdapter(java.lang.Class controllerClass)
Create the adapter.

Method Detail

init

public void init(org.jdom.Element controllerNode)
          throws ConfigException
Currently unused.

Specified by:
init in interface ControllerSingleton

go

public java.lang.String go(ControllerContext cctx)
                    throws javax.servlet.ServletException
Instantiates a single-use controller, executes it, and returns the result.

Specified by:
go in interface Controller