KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > ejb > EJBImpl


1 /*
2  * JBoss, the OpenSource EJB server
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.ejb;
8
9 /**
10  * // *
11  *
12  * @author <a HREF="mailto:bill@jboss.org">William DeCoste</a>
13  * @version $Revision: 1.3.2.2 $
14  */

15 public class EJBImpl implements javax.annotation.EJB
16 {
17    private String JavaDoc beanName = "";
18    private Class JavaDoc businessInterface = java.lang.Object JavaDoc.class;
19    private String JavaDoc name = "";
20    
21    public EJBImpl()
22    {
23    }
24    
25    public Class JavaDoc businessInterface()
26    {
27       return businessInterface;
28    }
29    
30    public void setBusinessInterface(Class JavaDoc businessInterface)
31    {
32       this.businessInterface = businessInterface;
33    }
34    
35    public String JavaDoc name()
36    {
37       return name;
38    }
39    
40    public void setName(String JavaDoc name)
41    {
42       this.name = name;
43    }
44    
45    public String JavaDoc beanName()
46    {
47       return beanName;
48    }
49    
50    public void setBeanName(String JavaDoc beanName)
51    {
52       this.beanName = beanName;
53    }
54
55    public Class JavaDoc annotationType()
56    {
57       return javax.annotation.EJB.class;
58    }
59    
60    public String JavaDoc toString()
61    {
62       StringBuffer JavaDoc sb = new StringBuffer JavaDoc(100);
63       sb.append("[");
64       sb.append("name=").append(name);
65       sb.append(",beanName=").append(beanName);
66       sb.append(",businessInterface=").append(businessInterface);
67       sb.append("]");
68       return sb.toString();
69    }
70 }
71
Popular Tags