站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.4.0, Java 2 SDK 英文文档

ActivationGroup_Stub (Java 2 Platform SE v1.4.0) - JDK 5 Documentation v1.4.0, Java 2 SDK 英文文档

JavaTM 2 Platform
Std. Ed. v1.4.0

java.rmi.activation
Class ActivationGroup_Stub

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteStub
              |
              +--java.rmi.activation.ActivationGroup_Stub
All Implemented Interfaces:
ActivationInstantiator, Remote, Serializable

public final synchronized class ActivationGroup_Stub
extends RemoteStub
implements ActivationInstantiator, Remote

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ActivationGroup_Stub(RemoteRef)
           
 
Method Summary
 MarshalledObject newInstance(ActivationID, ActivationDesc)
          The activator calls an instantiator's newInstance method in order to recreate in that group an object with the activation identifier, id, and descriptor, desc.
 
Methods inherited from class java.rmi.server.RemoteStub
setRef
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActivationGroup_Stub

public ActivationGroup_Stub(RemoteRef)
Method Detail

newInstance

public MarshalledObject newInstance(ActivationID,
                                    ActivationDesc)
                             throws RemoteException,
                                    ActivationException
Description copied from interface: ActivationInstantiator
The activator calls an instantiator's newInstance method in order to recreate in that group an object with the activation identifier, id, and descriptor, desc. The instantiator is responsible for:
  • determining the class for the object using the descriptor's getClassName method,
  • loading the class from the code location obtained from the descriptor (using the getLocation method),
  • creating an instance of the class by invoking the special "activation" constructor of the object's class that takes two arguments: the object's ActivationID, and the MarshalledObject containing object specific initialization data, and
  • returning a MarshalledObject containing the stub for the remote object it created

    Specified by:
    newInstance in interface ActivationInstantiator
    Parameters:
    - the object's activation identifier
    - the object's descriptor
    Returns:
    a marshalled object containing the serialized representation of remote object's stub
    Throws:
    ActivationException - if object activation fails
    RemoteException - if remote call fails

JavaTM 2 Platform
Std. Ed. v1.4.0

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.