- Revision
- 821
- Author
- mauro
- Date
- 2008-09-06 08:41:56 -0500 (Sat, 06 Sep 2008)
Log Message
Dropped deprecated getValue() method from View. Minor other changes for better readability.
Modified Paths
Diff
Modified: trunk/waffle-core/src/main/java/org/codehaus/waffle/controller/ControllerDefinition.java (820 => 821)
--- trunk/waffle-core/src/main/java/org/codehaus/waffle/controller/ControllerDefinition.java 2008-09-05 12:34:25 UTC (rev 820) +++ trunk/waffle-core/src/main/java/org/codehaus/waffle/controller/ControllerDefinition.java 2008-09-06 13:41:56 UTC (rev 821) @@ -7,7 +7,7 @@ /** * <p>In Waffle a Controller can be any Pojo. Controllers are registered per application - * with a custom <code>Registrar</code>. This class is, a wrapper to merge both + * with a custom <code>Registrar</code>. The ControllerDefinition is a wrapper to merge both * the name the controller was registered under and the actual controller instance. * <br/> * <b>NOTE:</b> This is required so that Waffle can properly direct to a
Modified: trunk/waffle-core/src/main/java/org/codehaus/waffle/servlet/WaffleServlet.java (820 => 821)
--- trunk/waffle-core/src/main/java/org/codehaus/waffle/servlet/WaffleServlet.java 2008-09-05 12:34:25 UTC (rev 820) +++ trunk/waffle-core/src/main/java/org/codehaus/waffle/servlet/WaffleServlet.java 2008-09-06 13:41:56 UTC (rev 821) @@ -235,8 +235,8 @@ * @return The View */ protected View buildView(ControllerDefinition controllerDefinition) { - String controllerValue = viewPrefix + controllerDefinition.getName() + viewSuffix; - return new View(controllerValue, controllerDefinition.getController()); + String path = viewPrefix + controllerDefinition.getName() + viewSuffix; + return new View(path, controllerDefinition.getController()); } /**
Modified: trunk/waffle-core/src/main/java/org/codehaus/waffle/view/View.java (820 => 821)
--- trunk/waffle-core/src/main/java/org/codehaus/waffle/view/View.java 2008-09-05 12:34:25 UTC (rev 820) +++ trunk/waffle-core/src/main/java/org/codehaus/waffle/view/View.java 2008-09-06 13:41:56 UTC (rev 821) @@ -4,13 +4,13 @@ package org.codehaus.waffle.view; /** - * Represents the view that the resolver will dispatch. View holds: + * Represents the view that the resolver will dispatch. View holds: * <ol> - * <li>the path of the view</li> - * <li>the controller object </li> + * <li>the path of the view</li> + * <li>the controller object</li> * </ol> * which allows for more granular decisions on how to handle a View. - * + * * @author Michael Ward * @author Mauro Talevi */ @@ -37,17 +37,10 @@ public String getPath() { return path; } - - /** - * @deprecated Use #getPath() - */ - public String getValue() { - return getPath(); - } /** - * Returns the Controller this View originated from - * + * Returns the controller associated to this view + * * @return The Controller instance */ public Object getController() {
To unsubscribe from this list please visit:
