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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.infohazard.maverick.flow.ControllerWithParams
All Implemented Interfaces:
Controller

public class ControllerWithParams
extends java.lang.Object
implements Controller

This is a Decorator pattern, adding params defined for a controller.


Field Summary
protected  Controller decorated
          the decorated controller.
protected  java.util.Map params
          the controller parameters.
 
Constructor Summary
ControllerWithParams(Controller decorate, java.util.Map params)
          Create a decorator for the given controller with the given parameters.
 
Method Summary
 Controller getDecorated()
          Get decorated.
 java.lang.String go(ControllerContext cctx)
          Puts all controller parameters and then defers execution to the command method of the controller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

decorated

protected Controller decorated
the decorated controller.


params

protected java.util.Map params
the controller parameters.

Constructor Detail

ControllerWithParams

public ControllerWithParams(Controller decorate,
                            java.util.Map params)
Create a decorator for the given controller with the given parameters.

Method Detail

go

public java.lang.String go(ControllerContext cctx)
                    throws javax.servlet.ServletException
Puts all controller parameters and then defers execution to the command method of the controller.

Specified by:
go in interface Controller

getDecorated

public Controller getDecorated()
Get decorated.