View Javadoc

1   package net.sf.chainedoptions;
2   
3   import java.util.Map;
4   
5   /***
6    * Responsible for retrieving options and maintaining default values in command
7    * objects.
8    * 
9    * @author Mattias Arthursson
10   * @author Ulrik Sandberg
11   */
12  public interface ChainedOptionManager {
13      /***
14       * Sets option Lists in the supplied map and makes sure that the command
15       * object always has valid values for all managed properties.
16       * 
17       * @param model
18       *            Map where the option Lists will be stored.
19       * @param command
20       *            the command object to operate on.
21       * @param context
22       *            any context that might be useful for selecting valid options
23       *            and default values. E.g. a Request might be passed as a
24       *            context for filtering options based on user access.
25       */
26      void referenceData(Map model, Object command, Object context);
27  }