Author: richard.opalka(a)jboss.com
Date: 2010-12-03 08:12:03 -0500 (Fri, 03 Dec 2010)
New Revision: 13397
Modified:
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/invocation/InvocationHandler.java
Log:
[JBWS-3177] make invocation handler lifecycle callback methods part of SPI
Modified:
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/invocation/InvocationHandler.java
===================================================================
---
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/invocation/InvocationHandler.java 2010-12-03
12:57:46 UTC (rev 13396)
+++
spi/branches/jbossws-spi-1.4.1/src/main/java/org/jboss/wsf/spi/invocation/InvocationHandler.java 2010-12-03
13:12:03 UTC (rev 13397)
@@ -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