beehive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ekon...@apache.org
Subject svn commit: rev 46073 - incubator/beehive/trunk/netui/src/webapp-template/default
Date Wed, 15 Sep 2004 03:28:30 GMT
Author: ekoneil
Date: Tue Sep 14 20:28:29 2004
New Revision: 46073

Modified:
   incubator/beehive/trunk/netui/src/webapp-template/default/Controller.jpf
Log:
Stub out some lifecycle methods that are often used to initialize and un-initialize resources
in JPFs.  Just makes these more discoverable.

BB: self
DRT: NetUI pass 



Modified: incubator/beehive/trunk/netui/src/webapp-template/default/Controller.jpf
==============================================================================
--- incubator/beehive/trunk/netui/src/webapp-template/default/Controller.jpf	(original)
+++ incubator/beehive/trunk/netui/src/webapp-template/default/Controller.jpf	Tue Sep 14 20:28:29
2004
@@ -1,3 +1,5 @@
+import javax.servlet.http.HttpSession;
+
 import org.apache.beehive.netui.pageflow.Forward;
 import org.apache.beehive.netui.pageflow.PageFlowController;
 import org.apache.beehive.netui.pageflow.annotations.Jpf;
@@ -14,5 +16,19 @@
     protected Forward begin()
     {
         return new Forward("success");
+    }
+
+    /**
+     * Callback that is invoked when this controller instance is created.
+     */
+    protected void onCreate()
+    {
+    }
+
+    /**
+     * Callback that is invoked when this controller instance is destroyed.
+     */
+    protected void onDestroy(HttpSession session)
+    {
     }
 }

Mime
View raw message