KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jmanage > core > remote > RemoteInvocation


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

16 package org.jmanage.core.remote;
17
18 import java.io.Serializable JavaDoc;
19 import java.lang.reflect.Method JavaDoc;
20
21 /**
22  *
23  * date: Feb 24, 2005
24  * @author Rakesh Kalra
25  */

26 public class RemoteInvocation implements Serializable JavaDoc {
27
28     private String JavaDoc className;
29     private String JavaDoc methodName;
30     private Class JavaDoc[] signature;
31     private Object JavaDoc[] args;
32
33     public RemoteInvocation(Method JavaDoc method,
34                             Object JavaDoc[] args){
35         this.className = method.getDeclaringClass().getName();
36         this.methodName = method.getName();
37         this.signature = method.getParameterTypes();
38         this.args =args;
39     }
40
41     public String JavaDoc getClassName() {
42         return className;
43     }
44
45     public String JavaDoc getMethodName() {
46         return methodName;
47     }
48
49     public Class JavaDoc[] getSignature() {
50         return signature;
51     }
52
53     public Object JavaDoc[] getArgs() {
54         return args;
55     }
56 }
57
Popular Tags