[jbossws-commits] JBossWS SVN: r13399 - 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
Fri Dec 3 08:16:50 EST 2010


Author: richard.opalka at jboss.com
Date: 2010-12-03 08:16:49 -0500 (Fri, 03 Dec 2010)
New Revision: 13399

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/InvocationHandlerJAXRPC.java
   common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation/InvocationHandlerJAXWS.java
Log:
[JBWS-3177] make invocation handler lifecycle callback methods part of SPI

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-12-03 13:13:18 UTC (rev 13398)
+++ common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation/AbstractInvocationHandler.java	2010-12-03 13:16:49 UTC (rev 13399)
@@ -92,36 +92,20 @@
       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
+   @Override
+   public 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
+   @Override
+   public 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
+   @Override
+   public 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/InvocationHandlerJAXRPC.java
===================================================================
--- common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation/InvocationHandlerJAXRPC.java	2010-12-03 13:13:18 UTC (rev 13398)
+++ common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation/InvocationHandlerJAXRPC.java	2010-12-03 13:16:49 UTC (rev 13399)
@@ -53,7 +53,7 @@
     * @throws Exception if any error occurs
     */
    @Override
-   protected void onBeforeInvocation(final Invocation invocation) throws Exception
+   public void onBeforeInvocation(final Invocation invocation) throws Exception
    {
       final InvocationContext invocationContext = invocation.getInvocationContext();
       final Object targetBean = invocationContext.getTargetBean();
@@ -75,7 +75,7 @@
     * @throws Exception if any error occurs
     */
    @Override
-   protected void onAfterInvocation(final Invocation invocation) throws Exception
+   public void onAfterInvocation(final Invocation invocation) throws Exception
    {
       final InvocationContext invocationContext = invocation.getInvocationContext();
       final Object targetBean = invocationContext.getTargetBean();

Modified: common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation/InvocationHandlerJAXWS.java
===================================================================
--- common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation/InvocationHandlerJAXWS.java	2010-12-03 13:13:18 UTC (rev 13398)
+++ common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation/InvocationHandlerJAXWS.java	2010-12-03 13:16:49 UTC (rev 13399)
@@ -65,7 +65,7 @@
     * @param invocation current invocation
     */
    @Override
-   protected void onEndpointInstantiated(final Endpoint endpoint, final Invocation invocation)
+   public void onEndpointInstantiated(final Endpoint endpoint, final Invocation invocation)
    {
       final InjectionsMetaData injectionsMD = endpoint.getAttachment(InjectionsMetaData.class);
       final Object targetBean = this.getTargetBean(invocation);
@@ -91,7 +91,7 @@
     *  @param invocation current invocation
     */
    @Override
-   protected void onBeforeInvocation(final Invocation invocation)
+   public void onBeforeInvocation(final Invocation invocation)
    {
       final WebServiceContext wsContext = this.getWebServiceContext(invocation);
       ThreadLocalAwareWebServiceContext.getInstance().setMessageContext(wsContext);
@@ -103,7 +103,7 @@
     * @param invocation current invocation
     */
    @Override
-   protected void onAfterInvocation(final Invocation invocation)
+   public void onAfterInvocation(final Invocation invocation)
    {
       ThreadLocalAwareWebServiceContext.getInstance().setMessageContext(null);
    }



More information about the jbossws-commits mailing list