KickJava   Java API By Example, From Geeks To Geeks.

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


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.bussinessproxy.meta;
17
18 /**
19  * POJO Service Meta Definition
20  *
21  * @author <a HREF="mailto:banqiao@jdon.com">banq</a>
22  *
23  */

24 public class POJOTargetMetaDef extends AbstractTargetMetaDef {
25
26
27   private String JavaDoc className;
28   private String JavaDoc name;
29   private String JavaDoc[] constructors;
30   
31    
32
33   public POJOTargetMetaDef(String JavaDoc name, String JavaDoc className){
34     this.name = name;
35     this.className = className;
36   }
37
38   public POJOTargetMetaDef(String JavaDoc name, String JavaDoc className, String JavaDoc[] constructors){
39     this.name = name;
40     this.className = className;
41     this.constructors = constructors;
42   }
43
44
45   public boolean isEJB() {
46     return false;
47   }
48
49   public String JavaDoc getClassName() {
50     return this.className;
51   }
52
53   public String JavaDoc getCacheKey() {
54     return this.className;
55   }
56
57
58   public String JavaDoc[] getConstructors() {
59     return constructors;
60   }
61
62   public void setConstructors(String JavaDoc[] constructors) {
63     this.constructors = constructors;
64   }
65
66     /**
67      * @return Returns the name.
68      */

69     public String JavaDoc getName() {
70         return name;
71     }
72     /**
73      * @param name The name to set.
74      */

75     public void setName(String JavaDoc name) {
76         this.name = name;
77     }
78
79     
80 }
81
Popular Tags