- Revision
- 379
- Author
- mauro
- Date
- 2007-11-15 07:40:57 -0600 (Thu, 15 Nov 2007)
Log Message
Renamed View#getFromController() to View#getController(), as there are no more than one controller. Improved javadocs.
Modified Paths
Diff
Modified: trunk/core/src/main/java/org/codehaus/waffle/view/View.java (378 => 379)
--- trunk/core/src/main/java/org/codehaus/waffle/view/View.java 2007-11-15 13:20:22 UTC (rev 378) +++ trunk/core/src/main/java/org/codehaus/waffle/view/View.java 2007-11-15 13:40:57 UTC (rev 379) @@ -11,42 +11,48 @@ package org.codehaus.waffle.view; /** - * Represents the value of the view, View resolver will dispatch - * <p/> - * View should hold: - * - the value from that action method - * - The action - * <p/> + * + * Represents the value of the view that the resolver will dispatch. + * View holds: + * <ol> + * <li>the value from the controller method</li> + * <li>the controller object </li> + * </ol> * this allows for more granular decisions on how to handle a View * * @author Michael Ward */ public class View { private final String value; - private final Object fromController; + private final Object controller; /** - * + * Creates a View + * * @param value represents the name of the View to be resolved - * @param fromController where this view orginated from + * @param controller the controller where the view originated from */ - public View(String value, Object fromController) { + public View(String value, Object controller) { this.value = value; - this.fromController = fromController; + this.controller = controller; } - // the term "value" is used to be purposely open ended + /** + * Returns the view value. The term "value" is used to be purposely open ended. + * + * @return The View value + */ public String getValue() { return value; } /** - * Represent which Controller this View originated from + * Returns the Controller this View originated from * - * @return the controller instance + * @return The Controller instance */ - public Object getFromController() { - return fromController; + public Object getController() { + return controller; } }
To unsubscribe from this list please visit:
