org.davesag.generica.controller
Interface Actor

All Superinterfaces:
ActionController, Controller

public interface Actor
extends ActionController

An implementation of the Actor interface must be able to perform some action or actions with the map of params provided. It is deliberately very genereric. Like Presenter s, a number of Actors can be sepcified in the Action definition in the struts-config.xml file.

Since:
Generica 1.0
Version:
CVS Revision $Id: Actor.java,v 1.2 2004/03/30 10:12:56 norm Exp $
Author:
Dave Sag http://www.davesag.com
See Also:
TargetAction

Method Summary
 void act(Map params)
          Perform some action using the param map provided.
 
Methods inherited from interface org.davesag.generica.controller.ActionController
setAction
 
Methods inherited from interface org.davesag.generica.controller.Controller
setForm, setRequest, setResponse
 

Method Detail

act

public void act(Map params)
         throws Exception
Perform some action using the param map provided. Actors, like other ActionControllers have access to the action itself and can call its setNextForward method to affect where the action should go when done.

Parameters:
params - A map of application specific params for the actor to act on.
Throws:
Exception - if something went wrong.


Dave Sag Generica API version 0.5.9 - (prerelease) Copyright 2003 - 2004 Dave Sag.