KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > rmi > activation > ActivationGroup_Stub


1 /*
2  * @(#)ActivationGroup_Stub.java 1.3 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.rmi.activation;
9
10 /**
11  * <code>ActivationGroup_Stub</code> is a stub class
12  * for the subclasses of <code>java.rmi.activation.ActivationGroup</code>
13  * that are exported as a <code>java.rmi.server.UnicastRemoteObject</code>.
14  *
15  * @version 1.3, 12/19/03
16  * @since 1.2
17  */

18 public final class ActivationGroup_Stub
19     extends java.rmi.server.RemoteStub
20     implements java.rmi.activation.ActivationInstantiator, java.rmi.Remote
21 {
22     /**
23      * Constructs a stub for the <code>ActivationGroup</code> class. It
24      * invokes the superclass <code>RemoteStub(RemoteRef)</code>
25      * constructor with its argument, <code>ref</code>.
26      *
27      * @param ref a remote ref
28      */

29     public ActivationGroup_Stub(java.rmi.server.RemoteRef ref) {
30     }
31     
32     /**
33      * Stub method for <code>ActivationGroup.newInstance</code>. Invokes
34      * the <code>invoke</code> method on this instance's
35      * <code>RemoteObject.ref</code> field, with <code>this</code> as the
36      * first argument, a two-element <code>Object[]</code> as the second
37      * argument (with <code>id</code> as the first element and
38      * <code>desc</code> as the second element), and -5274445189091581345L
39      * as the third argument, and returns the result. If that invocation
40      * throws a <code>RuntimeException</code>, <code>RemoteException</code>,
41      * or an <code>ActivationException</code>, then that exception is
42      * thrown to the caller. If that invocation throws any other
43      * <code>java.lang.Exception</code>, then a
44      * <code>java.rmi.UnexpectedException</code> is thrown to the caller
45      * with the original exception as the cause.
46      *
47      * @param id an activation identifier
48      * @param desc an activation descriptor
49      * @return the result of the invocation
50      * @throws java.rmi.RemoteException if invocation results in
51      * a <code>RemoteException</code>
52      * @throws java.rmi.activation.ActivationException if invocation
53      * results in an <code>ActivationException</code>
54      */

55     public java.rmi.MarshalledObject newInstance(
56                 java.rmi.activation.ActivationID id,
57                 java.rmi.activation.ActivationDesc desc)
58     throws java.rmi.RemoteException,
59         java.rmi.activation.ActivationException
60     {
61     return null;
62     }
63 }
64
Popular Tags