Author: richard.opalka(a)jboss.com
Date: 2010-12-03 08:13:18 -0500 (Fri, 03 Dec 2010)
New Revision: 13398
Modified:
spi/trunk/src/main/java/org/jboss/wsf/spi/invocation/InvocationHandler.java
Log:
[JBWS-3177] make invocation handler lifecycle callback methods part of SPI
Modified: spi/trunk/src/main/java/org/jboss/wsf/spi/invocation/InvocationHandler.java
===================================================================
--- spi/trunk/src/main/java/org/jboss/wsf/spi/invocation/InvocationHandler.java 2010-12-03
13:12:03 UTC (rev 13397)
+++ spi/trunk/src/main/java/org/jboss/wsf/spi/invocation/InvocationHandler.java 2010-12-03
13:13:18 UTC (rev 13398)
@@ -69,4 +69,32 @@
throw new UndeclaredThrowableException(th);
}
+
+ // invocation handler lifecycle callback methods
+
+ /**
+ * 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
+ */
+ public abstract void onEndpointInstantiated(final Endpoint endpoint, final Invocation
invocation) throws Exception;
+
+ /**
+ * 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
+ */
+ public abstract void onBeforeInvocation(final Invocation invocation) throws
Exception;
+
+ /**
+ * 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
+ */
+ public abstract void onAfterInvocation(final Invocation invocation) throws Exception;
+
}
Show replies by date