KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > easybeans > api > bean > lifecycle > EasyBeansSFSBLifeCycle


1 /**
2  * EasyBeans
3  * Copyright (C) 2006 Bull S.A.S.
4  * Contact: easybeans@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: EasyBeansSFSBLifeCycle.java 9 2006-02-19 18:53:32Z benoitf $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.easybeans.api.bean.lifecycle;
27
28 /**
29  * Defines the lifecycle of a stateful session bean.
30  * @author Florent Benoit
31  */

32 public interface EasyBeansSFSBLifeCycle extends EasyBeansSBLifeCycle {
33
34     /**
35      * The PrePassivate and PostActivate callback methods are only called on
36      * stateful session bean instances. PrePassivate and PostActivate callback
37      * methods should not be defined for stateless session beans. The
38      * PrePassivate callback notification signals the intent of the container to
39      * passivate the instance.
40      */

41     void prePassivateEasyBeansLifeCycle();
42
43     /**
44      * The PrePassivate and PostActivate callback methods are only called on
45      * stateful session bean instances.<br>
46      * PrePassivate and PostActivate callback methods should not be defined for
47      * stateless session beans.<br>
48      * The PostActivate notification signals the instance it has just been
49      * reactivated. Because containers automatically maintain the conversational
50      * state of a stateful session bean instance when it is passivated, most
51      * session beans do not need these notifications.
52      */

53     void postActivateEasyBeansLifeCycle();
54 }
55
Popular Tags