01: package org.enhydra.shark.webclient.business;
02:
03: import java.util.List;
04:
05: import org.enhydra.shark.client.utilities.DeadlineChecker;
06:
07: import com.lutris.appserver.server.Application;
08: import com.lutris.appserver.server.Enhydra;
09:
10: public class DeadlineCheckerWrapper extends DeadlineChecker {
11:
12: protected Application app;
13:
14: public DeadlineCheckerWrapper(Application app, String username,
15: List limitStructs, long delay, int instPerTrans,
16: int failToIgnore, boolean startImmediatelly) {
17: super (username, limitStructs, delay, instPerTrans,
18: failToIgnore, startImmediatelly);
19: this .app = app;
20: }
21:
22: protected void runMe() {
23: try {
24: Enhydra.register(app);
25: super.runMe();
26: } finally {
27: Enhydra.unRegister();
28: }
29: }
30: }
|