KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jdon > bussinessproxy > meta > DistributedTargetMetaDef


1 package com.jdon.bussinessproxy.meta;
2
3 /**
4  * EJB3 simple Distributed Object
5  * @author banq
6  *
7  */

8 public class DistributedTargetMetaDef extends AbstractTargetMetaDef{
9     
10     protected String JavaDoc jndiName;
11     
12     protected String JavaDoc name;
13     
14     private String JavaDoc interfaceClass;
15     
16     public DistributedTargetMetaDef(String JavaDoc name, String JavaDoc jndiName) {
17         this.name = name;
18         this.jndiName = jndiName;
19     }
20     
21     public DistributedTargetMetaDef(String JavaDoc name, String JavaDoc jndiName, String JavaDoc interfaceClass) {
22         this.name = name;
23         this.jndiName = jndiName;
24         this.interfaceClass = interfaceClass;
25     }
26
27     public String JavaDoc getJndiName() {
28         return jndiName;
29     }
30
31     public void setJndiName(String JavaDoc jndiName) {
32         this.jndiName = jndiName;
33     }
34     
35     /**
36      * jndiName作为EJB的key
37      * @return String
38      */

39     public String JavaDoc getCacheKey() {
40         return jndiName;
41     }
42
43     /**
44      * @return Returns the name.
45      */

46     public String JavaDoc getName() {
47         return name;
48     }
49
50     /**
51      * @param name
52      * The name to set.
53      */

54     public void setName(String JavaDoc name) {
55         this.name = name;
56     }
57     
58     public boolean isEJB() {
59         return true;
60     }
61     
62     /**
63      * EJB3 class is same as interface Class
64      */

65     public String JavaDoc getClassName() {
66         return interfaceClass;
67     }
68     
69     /**
70      * @return Returns the interfaceClass.
71      */

72     public String JavaDoc getInterfaceClass() {
73         return interfaceClass;
74     }
75
76     /**
77      * @param interfaceClass
78      * The interfaceClass to set.
79      */

80     public void setInterfaceClass(String JavaDoc interfaceClass) {
81         this.interfaceClass = interfaceClass;
82     }
83
84     
85 }
86
Popular Tags