01: /**
02: * EasyBeans
03: * Copyright (C) 2006 Bull S.A.S.
04: * Contact: easybeans@ow2.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * 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 1970 2007-10-16 11:49:25Z benoitf $
23: * --------------------------------------------------------------------------
24: */package org.ow2.easybeans.api.bean.info;
25:
26: import java.util.Map;
27:
28: import javax.ejb.ApplicationException;
29: import javax.ejb.TransactionManagementType;
30:
31: /**
32: * This interface is used for containing a description for a bean.
33: * It is used at the runtime.
34: * @author Florent Benoit
35: */
36: public interface IBeanInfo {
37:
38: /**
39: * Gets the list of application exceptions defined on this ejb jar metadata.
40: * @return the list of application exceptions defined on this ejb jar metadata.
41: */
42: Map<String, ApplicationException> getApplicationExceptions();
43:
44: /**
45: * Sets the list of application exceptions defined on this ejb jar metadata.
46: * @param applicationExceptions the list of application exceptions defined on this ejb jar metadata.
47: */
48: void setApplicationExceptions(
49: final Map<String, ApplicationException> applicationExceptions);
50:
51: /**
52: * Gets the type of transaction for the given bean.
53: * @return transaction management type.
54: */
55: TransactionManagementType getTransactionManagementType();
56:
57: /**
58: * Sets the type of transaction for the given bean.
59: * @param transactionManagementType transaction management type.
60: */
61: void setTransactionManagementType(
62: final TransactionManagementType transactionManagementType);
63:
64: /**
65: * Gets the security info.
66: * @return security info.
67: */
68: ISecurityInfo getSecurityInfo();
69:
70: /**
71: * Sets the security info.
72: * @param securityInfo security info.
73: */
74: void setSecurityInfo(final ISecurityInfo securityInfo);
75:
76: /**
77: * Gets the name of the bean.
78: * @return the name of the bean.
79: */
80: String getName();
81:
82: /**
83: * Sets the name of the bean.
84: * @param name the bean's name.
85: */
86: void setName(final String name);
87:
88: }
|