KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > ejb3 > test > initial > ExternalCallbackListener


1 /*
2  * JBoss, the OpenSource EJB server
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.ejb3.test.initial;
8
9 import javax.ejb.PostConstruct;
10 import javax.ejb.PreDestroy;
11 import javax.ejb.PostActivate JavaDoc;
12 import javax.ejb.PrePassivate JavaDoc;
13
14 /**
15  * @author <a HREF="mailto:kabir.khan@jboss.org">Kabir Khan</a>
16  * @version $Revision: 1.2.6.2 $
17  */

18 public class ExternalCallbackListener
19 {
20    @PostConstruct
21    public void postConstruct(Object JavaDoc bean)
22    {
23       TestStatusBean.postConstruct = true;
24    }
25
26    @PreDestroy
27    public void preDestroy(Object JavaDoc bean)
28    {
29       TestStatusBean.preDestroy = true;
30    }
31
32    @PostActivate JavaDoc
33    public void postActivate(Object JavaDoc bean)
34    {
35       TestStatusBean.postActivate = true;
36    }
37
38    @PrePassivate JavaDoc
39    public void prePassivate(Object JavaDoc bean)
40    {
41       TestStatusBean.prePassivate = true;
42    }
43 }
44
Popular Tags