KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > easybeans > api > bean > info > IBeanInfo


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: IBeanInfo.java 1121 2006-09-27 08:51:06Z benoitf $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.easybeans.api.bean.info;
27
28
29 import java.util.Map JavaDoc;
30
31 import javax.ejb.ApplicationException JavaDoc;
32 import javax.ejb.TransactionManagementType JavaDoc;
33
34 /**
35  * This interface is used for containing a description for a bean.
36  * It is used at the runtime.
37  * @author Florent Benoit
38  */

39 public interface IBeanInfo {
40
41     /**
42      * Gets the list of application exceptions defined on this ejb jar metadata.
43      * @return the list of application exceptions defined on this ejb jar metadata.
44      */

45     Map JavaDoc<String JavaDoc, ApplicationException JavaDoc> getApplicationExceptions();
46
47     /**
48      * Sets the list of application exceptions defined on this ejb jar metadata.
49      * @param applicationExceptions the list of application exceptions defined on this ejb jar metadata.
50      */

51     void setApplicationExceptions(final Map JavaDoc<String JavaDoc, ApplicationException JavaDoc> applicationExceptions);
52
53     /**
54      * Gets the type of transaction for the given bean.
55      * @return transaction management type.
56      */

57     TransactionManagementType JavaDoc getTransactionManagementType();
58
59     /**
60      * Sets the type of transaction for the given bean.
61      * @param transactionManagementType transaction management type.
62      */

63     void setTransactionManagementType(final TransactionManagementType JavaDoc transactionManagementType);
64
65     /**
66      * Gets the security info.
67      * @return security info.
68      */

69     ISecurityInfo getSecurityInfo();
70
71
72     /**
73      * Sets the security info.
74      * @param securityInfo security info.
75      */

76     void setSecurityInfo(final ISecurityInfo securityInfo);
77
78
79     /**
80      * Gets the name of the bean.
81      * @return the name of the bean.
82      */

83     String JavaDoc getName();
84
85     /**
86      * Sets the name of the bean.
87      * @param name the bean's name.
88      */

89     void setName(final String JavaDoc name);
90
91 }
92
Popular Tags