KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > ejb > meta > ResourceEnvRefDescriptor


1 /* JFox, the OpenSource J2EE Application Server
2  *
3  * Distributable under GNU LGPL license by gun.org
4  * more details please visit http://www.huihoo.org/jfox
5  */

6
7 package org.jfox.ejb.meta;
8
9 import org.jfox.ioc.util.XMLUtils;
10 import org.w3c.dom.Node JavaDoc;
11
12 /**
13  * @author <a HREF="mailto:young_yy@hotmail.com">Young Yang</a>
14  */

15
16 public class ResourceEnvRefDescriptor extends Descriptor {
17
18     private String JavaDoc refName;
19     private String JavaDoc type;
20
21     public void processXML(Node JavaDoc node) throws EJBDescriptionException {
22         super.processXML(node);
23         setRefName(XMLUtils.getChildNodeValueOf(node, "resource-env-ref-name"));
24         setType(XMLUtils.getChildNodeValueOf(node, "resource-env-ref-type"));
25     }
26
27     public String JavaDoc getRefName() {
28         return refName;
29     }
30
31     public String JavaDoc getJndiName() {
32         return getRefName();
33     }
34
35     public void setRefName(String JavaDoc refName) {
36         this.refName = refName;
37     }
38
39     public String JavaDoc getType() {
40         return type;
41     }
42
43     public void setType(String JavaDoc type) {
44         this.type = type;
45     }
46
47     public static void main(String JavaDoc[] args) {
48
49     }
50 }
51
Popular Tags