KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > remoting > invocation > RemoteInvocation


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  *
7  */

8
9 package org.jboss.remoting.invocation;
10
11 import java.io.Serializable JavaDoc;
12
13 /**
14  * Serves as the base invocation object for the different types of remoting invocations.
15  * All remoting invocations should extend this class (i.e. InternalInvocation, NameBasedInvocation, etc.)
16  *
17  * @author <a HREF="mailto:telrod@e2technologies.net">Tom Elrod</a>
18  */

19 public class RemoteInvocation implements Serializable JavaDoc
20 {
21    static final long serialVersionUID = -5420149048705763388L;
22
23    protected final String JavaDoc methodName;
24    protected final Object JavaDoc[] params;
25
26    public RemoteInvocation(final String JavaDoc methodName, final Object JavaDoc[] params)
27    {
28       this.methodName = methodName;
29       this.params = params;
30    }
31
32    public String JavaDoc getMethodName()
33    {
34       return methodName;
35    }
36
37    public Object JavaDoc[] getParameters()
38    {
39       return params;
40    }
41 }
42
Popular Tags