KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > dinamica > IServiceWrapper


1 package dinamica;
2
3 /**
4  * IServiceWrapper<br>
5  * Interface that defines methods that will be invoked
6  * before and after the invocation of the service() method
7  * in any descendant of the GenericTransaction class. This
8  * interface should be implemented only by descendants of
9  * GenericTransaction, it has no effect on other types.<br><br>
10  * The purpose of this interface is to provide a simple way
11  * to add "wrapper" code to specific services, this may be used
12  * to implement very specific audit logs. It is a general purpose
13  * solution thay intends to meet different audit requirements.
14  * The Controller will invoke these methods if the current Transaction
15  * object implements this interface. These methods will form part of
16  * a JDBC transaction if JDBC transactions have been enabled for
17  * the current Action. These methods will use by default the same
18  * connection of the service() method. If any of these methods fail,
19  * an exception will be thrown and if any JDBC transaction is active, it
20  * will be rolled back.
21  * <br><br>
22  * Creation date: 26/01/2005<br>
23  * http://www.martincordova.com<br>
24  * @author mcordova - dinamica@martincordova.com
25  */

26 public interface IServiceWrapper
27 {
28
29     public void beforeService(Recordset inputParams) throws Throwable JavaDoc;
30     public void afterService(Recordset inputParams) throws Throwable JavaDoc;
31
32 }
33
Popular Tags