You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ek...@apache.org on 2004/09/15 05:28:30 UTC

svn commit: rev 46073 - incubator/beehive/trunk/netui/src/webapp-template/default

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)
+    {
     }
 }