KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > easybeans > tests > common > ejbs > entity > callbacklogger > CallbackType


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: CallbackType.java 827 2006-07-10 14:12:17Z studzine $
23  * --------------------------------------------------------------------------
24  */

25 package org.objectweb.easybeans.tests.common.ejbs.entity.callbacklogger;
26
27 import java.io.Serializable JavaDoc;
28
29 /**
30  * The callback methods that are registered in the database.
31  * @author Gisele Pinheiro Souza
32  * @author Eduardo Studzinski Estima de Castro
33  */

34 public enum CallbackType implements Serializable JavaDoc {
35
36     /**
37      * Indicates that is an interceptor method invocation.
38      */

39     AROUND_INVOKE,
40
41     /**
42      * Indicates that the callback method is PrePersist.
43      */

44     PRE_PERSIST,
45
46     /**
47      * Indicates that the callback method is PostPersist.
48      */

49     POST_PERSIST,
50
51     /**
52      * Indicates that the callback method is PreRemove.
53      */

54     PRE_REMOVE,
55
56     /**
57      * Indicates that the callback method is PostRemove.
58      */

59     POST_REMOVE,
60
61     /**
62      * Indicates that the callback method is PreUpdate.
63      */

64     PRE_UPDATE,
65
66     /**
67      * Indicates that the callback method is PostUpdate.
68      */

69     POST_UPDATE,
70
71     /**
72      * Indicates that the callback method is PostPLoad.
73      */

74     POST_LOAD,
75
76     /**
77      * Indicates that the callback method is PreDestroy.
78      */

79     PRE_DESTROY,
80
81     /**
82      * Indicates that the callback method is PostConstruct.
83      */

84     POST_CONSTRUCT,
85
86     /**
87      * Indicates that the callback method is PrePassivate.
88      */

89     PRE_PASSIVATE,
90
91     /**
92      * Indicates that the callback method is PostActivate.
93      */

94     POST_ACTIVATE,
95
96     /**
97      * Indicates that the callback method is a message-driven bean onMethod.
98      */

99     ON_MESSAGE,
100
101     /**
102      * Indicates that the callback method is a timeout.
103      */

104     TIMEOUT,
105
106     /**
107      * This is used to allow the use with other kinds of methods.
108      */

109     UNDEFINED;
110 }
111
Popular Tags