An ActivationInstantiator is responsible for creating
instances of "activatable" objects. A concrete subclass of
ActivationGroup implements the newInstance
method to handle creating objects within the group.
newInstance(ActivationID id,
ActivationDesc desc)
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 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
Parameters:
id - the object's activation identifier
desc - the object's descriptor
Returns:
a marshalled object containing the serialized
representation of remote object's stub
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-2001 Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, California, 94303, U.S.A. All Rights Reserved.