- Revision
- 273
- Author
- mauro
- Date
- 2007-07-18 08:39:27 -0500 (Wed, 18 Jul 2007)
Log Message
Renamed ActionMethod to be more focused on the business logic event, rather than the outcome.
Modified Paths
- trunk/core/src/main/java/org/codehaus/waffle/action/DefaultActionMethodResponseHandler.java
- trunk/core/src/main/java/org/codehaus/waffle/monitor/AbstractWritingMonitor.java
- trunk/core/src/main/java/org/codehaus/waffle/monitor/ActionMonitor.java
- trunk/core/src/test/java/org/codehaus/waffle/testmodel/StubMonitor.java
Diff
Modified: trunk/core/src/main/java/org/codehaus/waffle/action/DefaultActionMethodResponseHandler.java (272 => 273)
--- trunk/core/src/main/java/org/codehaus/waffle/action/DefaultActionMethodResponseHandler.java 2007-07-18 12:12:09 UTC (rev 272) +++ trunk/core/src/main/java/org/codehaus/waffle/action/DefaultActionMethodResponseHandler.java 2007-07-18 13:39:27 UTC (rev 273) @@ -60,7 +60,7 @@ viewDispatcher.dispatch(request, response, view); } else if (returnValue instanceof Exception) { Exception exception = (Exception) returnValue; - monitor.actionMethodReturnedException(exception); + monitor.actionMethodExecutionFailed(exception); response.setStatus(HttpServletResponse.SC_BAD_REQUEST); handleResponse(response, exception.getMessage()); } else {
Modified: trunk/core/src/main/java/org/codehaus/waffle/monitor/AbstractWritingMonitor.java (272 => 273)
--- trunk/core/src/main/java/org/codehaus/waffle/monitor/AbstractWritingMonitor.java 2007-07-18 12:12:09 UTC (rev 272) +++ trunk/core/src/main/java/org/codehaus/waffle/monitor/AbstractWritingMonitor.java 2007-07-18 13:39:27 UTC (rev 273) @@ -58,7 +58,7 @@ write(INFO, "Method name '" + methodName + "' found for key '" + methodKey + "' among keys " + keys); } - public void actionMethodReturnedException(Exception exception) { + public void actionMethodExecutionFailed(Exception exception) { trace(exception); } }
Modified: trunk/core/src/main/java/org/codehaus/waffle/monitor/ActionMonitor.java (272 => 273)
--- trunk/core/src/main/java/org/codehaus/waffle/monitor/ActionMonitor.java 2007-07-18 12:12:09 UTC (rev 272) +++ trunk/core/src/main/java/org/codehaus/waffle/monitor/ActionMonitor.java 2007-07-18 13:39:27 UTC (rev 273) @@ -34,5 +34,5 @@ void methodNameResolved(String methodName, String methodKey, Set<String> keys); - void actionMethodReturnedException(Exception exception); + void actionMethodExecutionFailed(Exception cause); }
Modified: trunk/core/src/test/java/org/codehaus/waffle/testmodel/StubMonitor.java (272 => 273)
--- trunk/core/src/test/java/org/codehaus/waffle/testmodel/StubMonitor.java 2007-07-18 12:12:09 UTC (rev 272) +++ trunk/core/src/test/java/org/codehaus/waffle/testmodel/StubMonitor.java 2007-07-18 13:39:27 UTC (rev 273) @@ -22,6 +22,6 @@ public void methodNameResolved(String methodName, String methodKey, Set<String> keys) { } - public void actionMethodReturnedException(Exception exception) { + public void actionMethodExecutionFailed(Exception exception) { } }
To unsubscribe from this list please visit:
