01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: /*
06: * WebWork, Web Application Framework
07: *
08: * Distributable under Apache license.
09: * See terms of license at opensource.org
10: */
11: package com.opensymphony.webwork.interceptor;
12:
13: import java.util.Map;
14:
15: /**
16: * This interface gives actions an alternative way of receiving input parameters. The map will
17: * contain all input parameters as name/value entries. Actions that need this should simply implement it. <p>
18: * <p/>
19: * One common use for this is to have the action propagate parameters to internally instantiated data
20: * objects. <p>
21: * <p/>
22: * Note that all parameter values for a given name will be returned, so the type of the objects in
23: * the map is <tt>java.lang.String[]</tt>.
24: *
25: * @author <a href="mailto:rickard@middleware-company.com">Rickard Öberg</a>
26: */
27: public interface ParameterAware {
28:
29: /**
30: * Sets the map of input parameters in the implementing class.
31: *
32: * @param parameters a Map of parameters (name/value Strings).
33: */
34: public void setParameters(Map parameters);
35: }
|