KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfox > test > ejb3 > callback > AbstractCalculatorBean


1 /*
2  * JFox - The most lightweight Java EE Application Server!
3  * more details please visit http://www.huihoo.org/jfox or http://www.jfox.org.cn.
4  *
5  * JFox is licenced and re-distributable under GNU LGPL.
6  */

7 package jfox.test.ejb3.callback;
8
9 import javax.annotation.PostConstruct;
10 import javax.annotation.PreDestroy;
11
12 public abstract class AbstractCalculatorBean implements CalculatorRemote, CalculatorLocal {
13
14     @PostConstruct
15     public void superPostConstruct(){
16         System.out.println(AbstractCalculatorBean.class.getName() + ".superPostConstruct!");
17     }
18
19     @PreDestroy
20     public void preDestroy(){
21         System.out.println(AbstractCalculatorBean.class.getName() + ".PreDestroy!");
22     }
23
24     @PreDestroy
25     public void superPreDestroy(){
26         System.out.println(AbstractCalculatorBean.class.getName() + ".superPreDestroy!");
27     }
28
29 }
30
Popular Tags