KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jdon > container > access > TargetMetaRequest


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.access;
17
18 import java.io.Serializable JavaDoc;
19
20 import com.jdon.bussinessproxy.TargetMetaDef;
21 import com.jdon.bussinessproxy.meta.MethodMetaArgs;
22 import com.jdon.container.visitor.ComponentVisitor;
23 import com.jdon.container.visitor.data.SessionContext;
24
25 /**
26  * Every container's user has one UserTargetMetaDef object
27  * this object is a DTO when this user enter businerss proxy.
28  * it reduce the method's parameters amount;
29  * it's scope is a instance for per request of one user ;
30  * TargetMetaDef object's scope is for a service for all users;
31  *
32  * @author <a HREF="mailto:banqiao@jdon.com">banq</a>
33  *
34  */

35 public class TargetMetaRequest implements Serializable JavaDoc {
36
37     private TargetMetaDef targetMetaDef;
38     
39     private MethodMetaArgs methodMetaArgs;
40
41     private String JavaDoc visitableName;
42
43     private ComponentVisitor componentVisitor;
44     
45     private SessionContext sessionContext;
46
47     /**
48      * @param targetMetaDef
49      */

50     public TargetMetaRequest(TargetMetaDef targetMetaDef) {
51         super();
52         this.targetMetaDef = targetMetaDef;
53     }
54
55     /**
56      * @return Returns the targetMetaDef.
57      */

58     public TargetMetaDef getTargetMetaDef() {
59         return targetMetaDef;
60     }
61
62     /**
63      * @param targetMetaDef The targetMetaDef to set.
64      */

65     public void setTargetMetaDef(TargetMetaDef targetMetaDef) {
66         this.targetMetaDef = targetMetaDef;
67     }
68
69     /**
70      * @return Returns the componentVisitor.
71      */

72     public ComponentVisitor getComponentVisitor() {
73         return componentVisitor;
74     }
75
76     /**
77      * @param componentVisitor The componentVisitor to set.
78      */

79     public void setComponentVisitor(ComponentVisitor componentVisitor) {
80         this.componentVisitor = componentVisitor;
81     }
82
83     public String JavaDoc getVisitableName() {
84         return this.visitableName;
85     }
86
87     public void setVisitableName(String JavaDoc visitableName) {
88         this.visitableName = visitableName;
89     }
90     
91    
92     /**
93      * @return Returns the methodMetaArgs.
94      */

95     public MethodMetaArgs getMethodMetaArgs() {
96         return methodMetaArgs;
97     }
98     /**
99      * @param methodMetaArgs The methodMetaArgs to set.
100      */

101     public void setMethodMetaArgs(MethodMetaArgs methodMetaArgs) {
102         this.methodMetaArgs = methodMetaArgs;
103     }
104     
105     
106    
107     /**
108      * @return Returns the sessionContext.
109      */

110     public SessionContext getSessionContext() {
111         return sessionContext;
112     }
113     /**
114      * @param sessionContext The sessionContext to set.
115      */

116     public void setSessionContext(SessionContext sessionContext) {
117         this.sessionContext = sessionContext;
118     }
119 }
120
Popular Tags