[jbossws-commits] JBossWS SVN: r13352 - common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Mon Nov 29 05:41:26 EST 2010


Author: richard.opalka at jboss.com
Date: 2010-11-29 05:41:26 -0500 (Mon, 29 Nov 2010)
New Revision: 13352

Modified:
   common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation/AbstractInvocationHandler.java
   common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation/AbstractInvocationHandlerJSE.java
Log:
[JBWS-3171] refactoring lifecycle methods one level down

Modified: common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation/AbstractInvocationHandler.java
===================================================================
--- common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation/AbstractInvocationHandler.java	2010-11-28 02:31:39 UTC (rev 13351)
+++ common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation/AbstractInvocationHandler.java	2010-11-29 10:41:26 UTC (rev 13352)
@@ -92,4 +92,38 @@
       return implClass.getMethod(methodName, paramTypes);
    }
 
+   /**
+    * Template method for notifying subclasses that endpoint instance have been instantiated.
+    *
+    * @param endpoint instantiated endpoint
+    * @param invocation current invocation
+    * @throws Exception subclasses have to throw exception on any failure
+    */
+   protected void onEndpointInstantiated(final Endpoint endpoint, final Invocation invocation) throws Exception
+   {
+      // does nothing
+   }
+
+   /**
+    * Template method for notifying subclasses that endpoint method is going to be invoked.
+    *
+    * @param invocation current invocation
+    * @throws Exception subclasses have to throw exception on any failure
+    */
+   protected void onBeforeInvocation(final Invocation invocation) throws Exception
+   {
+      // does nothing
+   }
+
+   /**
+    * Template method for notifying subclasses that endpoint method invocation was completed.
+    *
+    * @param invocation current invocation
+    * @throws Exception subclasses have to throw exception on any failure
+    */
+   protected void onAfterInvocation(final Invocation invocation) throws Exception
+   {
+      // does nothing
+   }
+
 }

Modified: common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation/AbstractInvocationHandlerJSE.java
===================================================================
--- common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation/AbstractInvocationHandlerJSE.java	2010-11-28 02:31:39 UTC (rev 13351)
+++ common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation/AbstractInvocationHandlerJSE.java	2010-11-29 10:41:26 UTC (rev 13352)
@@ -144,38 +144,4 @@
       }
    }
 
-   /**
-    * Template method for notifying subclasses that endpoint instance have been instantiated.
-    *
-    * @param endpoint instantiated endpoint
-    * @param invocation current invocation
-    * @throws Exception subclasses have to throw exception on any failure
-    */
-   protected void onEndpointInstantiated(final Endpoint endpoint, final Invocation invocation) throws Exception
-   {
-      // does nothing
-   }
-
-   /**
-    * Template method for notifying subclasses that endpoint method is going to be invoked.
-    *
-    * @param invocation current invocation
-    * @throws Exception subclasses have to throw exception on any failure
-    */
-   protected void onBeforeInvocation(final Invocation invocation) throws Exception
-   {
-      // does nothing
-   }
-
-   /**
-    * Template method for notifying subclasses that endpoint method invocation was completed.
-    *
-    * @param invocation current invocation
-    * @throws Exception subclasses have to throw exception on any failure
-    */
-   protected void onAfterInvocation(final Invocation invocation) throws Exception
-   {
-      // does nothing
-   }
-
 }



More information about the jbossws-commits mailing list