diff Lib/IMPL/Web/Application.pm @ 63:76b878ad6596

Added serialization support for the IMPL::Object::List More intelligent Exception message Fixed encoding support in the actions Improoved tests Minor fixes
author wizard
date Mon, 15 Mar 2010 02:38:09 +0300
parents c64bd1bf727d
children 2840c4c85db8
line wrap: on
line diff
--- a/Lib/IMPL/Web/Application.pm	Fri Mar 12 16:23:46 2010 +0300
+++ b/Lib/IMPL/Web/Application.pm	Mon Mar 15 02:38:09 2010 +0300
@@ -16,7 +16,7 @@
     public property handlerError => prop_all;
     public property factoryAction => prop_all;
     public property handlersQuery => prop_all | prop_list;
-    public property configuration => prop_all;
+    public property options => prop_all;
 }
 
 # custom factory
@@ -36,17 +36,19 @@
     my ($this) = @_;
     
     while (my $query = $this->FetchRequest()) {
-        my $response = new IMPL::Web::Application::Response(query => $query);
         
+        # todo: move a creation of the response to the ActionClass
         my $action = $this->factoryAction->new(
         	query => $query,
-        	response => $response,
+        	response => new IMPL::Web::Application::Response(query => $query),
         	application => $this, 
         ); 
         
         $action->ChainHandler($_) foreach $this->handlersQuery;
         
         $action->Invoke();
+        
+        $action->response->Complete;
     }
 }