001: /**
002: * EasyBeans
003: * Copyright (C) 2006 Bull S.A.S.
004: * Contact: easybeans@ow2.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * --------------------------------------------------------------------------
022: * $Id: CallbackType.java 1970 2007-10-16 11:49:25Z benoitf $
023: * --------------------------------------------------------------------------
024: */package org.ow2.easybeans.tests.common.ejbs.entity.callbacklogger;
025:
026: import java.io.Serializable;
027:
028: /**
029: * The callback methods that are registered in the database.
030: * @author Gisele Pinheiro Souza
031: * @author Eduardo Studzinski Estima de Castro
032: */
033: public enum CallbackType implements Serializable {
034:
035: /**
036: * Indicates that is an interceptor method invocation.
037: */
038: AROUND_INVOKE,
039:
040: /**
041: * Indicates that the callback method is PrePersist.
042: */
043: PRE_PERSIST,
044:
045: /**
046: * Indicates that the callback method is PostPersist.
047: */
048: POST_PERSIST,
049:
050: /**
051: * Indicates that the callback method is PreRemove.
052: */
053: PRE_REMOVE,
054:
055: /**
056: * Indicates that the callback method is PostRemove.
057: */
058: POST_REMOVE,
059:
060: /**
061: * Indicates that the callback method is PreUpdate.
062: */
063: PRE_UPDATE,
064:
065: /**
066: * Indicates that the callback method is PostUpdate.
067: */
068: POST_UPDATE,
069:
070: /**
071: * Indicates that the callback method is PostPLoad.
072: */
073: POST_LOAD,
074:
075: /**
076: * Indicates that the callback method is PreDestroy.
077: */
078: PRE_DESTROY,
079:
080: /**
081: * Indicates that the callback method is PostConstruct.
082: */
083: POST_CONSTRUCT,
084:
085: /**
086: * Indicates that the callback method is PrePassivate.
087: */
088: PRE_PASSIVATE,
089:
090: /**
091: * Indicates that the callback method is PostActivate.
092: */
093: POST_ACTIVATE,
094:
095: /**
096: * Indicates that the callback method is a message-driven bean onMethod.
097: */
098: ON_MESSAGE,
099:
100: /**
101: * Indicates that the callback method is a timeout.
102: */
103: TIMEOUT,
104:
105: /**
106: * This is used to allow the use with other kinds of methods.
107: */
108: UNDEFINED;
109: }
|