webwork.action.factory
Class ParametersActionFactoryProxy

java.lang.Object
  extended bywebwork.action.factory.ActionFactory
      extended bywebwork.action.factory.ActionFactoryProxy
          extended bywebwork.action.factory.ParametersActionFactoryProxy

public class ParametersActionFactoryProxy
extends ActionFactoryProxy

Sets properties on an action from parameters after locating it through the action factory proxy chain.

Version:
$Revision: 1.10 $
Author:
Rickard Öberg (rickard@middleware-company.com)

Constructor Summary
ParametersActionFactoryProxy(ActionFactory aFactory)
           
 
Method Summary
 Action getActionImpl(java.lang.String aName)
          Sets properties on the obtained action from the parameters.
 
Methods inherited from class webwork.action.factory.ActionFactoryProxy
flushCaches, getNextFactory
 
Methods inherited from class webwork.action.factory.ActionFactory
getAction, getActionFactory, setActionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParametersActionFactoryProxy

public ParametersActionFactoryProxy(ActionFactory aFactory)
Method Detail

getActionImpl

public Action getActionImpl(java.lang.String aName)
                     throws java.lang.Exception
Sets properties on the obtained action from the parameters. If an IllegalArgumentException is thrown, a ResultException will be thrown with "error" as the result. This means that if a view is mapped to "error" then the user will be returned and the field causing the error will be highlighted.

Specified by:
getActionImpl in class ActionFactory
Parameters:
aName - name of action to check for a match
Throws:
java.lang.Exception
See Also:
BeanUtil.setProperties(Map, Object)


Copyright © 2001-2003 WebWork All Rights Reserved.