KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jdon > container > config > ComponentMetaDef


1 /*
2  * Copyright 2003-2006 the original author or authors.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  *
15  */

16 package com.jdon.container.config;
17
18
19 /**
20  * the component definition in container.xml
21  *
22  * @author <a HREF="mailto:banqiao@jdon.com">banq</a>
23  *
24  */

25 public class ComponentMetaDef {
26     
27     protected String JavaDoc name;
28     protected String JavaDoc className;
29     protected String JavaDoc[] constructors;
30     
31             
32
33     /**
34      * @param name
35      * @param className
36      * @param constructors
37      */

38     public ComponentMetaDef(String JavaDoc name, String JavaDoc className, String JavaDoc[] constructors) {
39         super();
40         this.name = name;
41         this.className = className;
42         this.constructors = constructors;
43     }
44     
45     
46     /**
47      * @param name
48      * @param className
49      */

50     public ComponentMetaDef(String JavaDoc name, String JavaDoc className) {
51         super();
52         this.name = name;
53         this.className = className;
54     }
55     /**
56      * @return Returns the className.
57      */

58     public String JavaDoc getClassName() {
59         return className;
60     }
61     /**
62      * @param className The className to set.
63      */

64     public void setClassName(String JavaDoc className) {
65         this.className = className;
66     }
67     /**
68      * @return Returns the constructors.
69      */

70     public String JavaDoc[] getConstructors() {
71         return constructors;
72     }
73     
74     /**
75      * @param constructors The constructors to set.
76      */

77     public void setConstructors(String JavaDoc[] constructors) {
78         this.constructors = constructors;
79     }
80     /**
81      * @return Returns the name.
82      */

83     public String JavaDoc getName() {
84         return name;
85     }
86     /**
87      * @param name The name to set.
88      */

89     public void setName(String JavaDoc name) {
90         this.name = name;
91     }
92 }
93
Popular Tags