01: package dinamica;
02:
03: /**
04: * IServiceWrapper<br>
05: * Interface that defines methods that will be invoked
06: * before and after the invocation of the service() method
07: * in any descendant of the GenericTransaction class. This
08: * interface should be implemented only by descendants of
09: * 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: public void beforeService(Recordset inputParams) throws Throwable;
29:
30: public void afterService(Recordset inputParams) throws Throwable;
31:
32: }
|