click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From med...@apache.org
Subject svn commit: r783739 - /incubator/click/trunk/click/mock/src/org/apache/click/MockContext.java
Date Thu, 11 Jun 2009 12:32:28 GMT
Author: medgar
Date: Thu Jun 11 12:32:28 2009
New Revision: 783739

URL: http://svn.apache.org/viewvc?rev=783739&view=rev
Log: (empty)

Modified:
    incubator/click/trunk/click/mock/src/org/apache/click/MockContext.java

Modified: incubator/click/trunk/click/mock/src/org/apache/click/MockContext.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/mock/src/org/apache/click/MockContext.java?rev=783739&r1=783738&r2=783739&view=diff
==============================================================================
--- incubator/click/trunk/click/mock/src/org/apache/click/MockContext.java (original)
+++ incubator/click/trunk/click/mock/src/org/apache/click/MockContext.java Thu Jun 11 12:32:28
2009
@@ -222,7 +222,7 @@
      */
     public static MockContext initContext(MockServletConfig servletConfig,
         MockRequest request, MockResponse response, ClickServlet clickServlet) {
-        ControlRegistry controlRegistry = new ControlRegistry();
+        ActionEventDispatcher controlRegistry = new ActionEventDispatcher();
         return initContext(servletConfig, request, response, clickServlet,
             controlRegistry);
     }
@@ -241,7 +241,7 @@
      */
     public static MockContext initContext(MockServletConfig servletConfig,
         MockRequest request, MockResponse response, ClickServlet clickServlet,
-        ControlRegistry controlRegistry) {
+        ActionEventDispatcher controlRegistry) {
 
         try {
             //Sanity checks
@@ -278,7 +278,7 @@
             MockContext mockContext = new MockContext(servletConfig, request,
                 response, isPost, clickServlet);
 
-            ControlRegistry.pushThreadLocalRegistry(controlRegistry);
+            ActionEventDispatcher.pushThreadLocalDispatcher(controlRegistry);
             Context.pushThreadLocalContext(mockContext);
 
             ConsoleLogService logService = (ConsoleLogService) ClickUtils.getLogService();
@@ -295,10 +295,10 @@
      * @return true if all listeners returned true, false otherwise
      */
     public boolean executeActionListeners() {
-        ControlRegistry controlRegistry = ControlRegistry.getThreadLocalRegistry();
+        ActionEventDispatcher controlRegistry = ActionEventDispatcher.getThreadLocalDispatcher();
 
         // Fire POST_ON_PROCESS events
-        return controlRegistry.fireActionEvents(this, ControlRegistry.POST_ON_PROCESS_EVENT);
+        return controlRegistry.fireActionEvents(this, ActionEventDispatcher.POST_ON_PROCESS_EVENT);
     }
 
     /**



Mime
View raw message