FileDocCategorySizeDatePackage
ActivationInstantiator.javaAPI DocJava SE 5 API2142Fri Aug 26 14:57:12 BST 2005java.rmi.activation

ActivationInstantiator

public interface ActivationInstantiator implements Remote
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.
author
Ann Wollrath
version
1.15, 12/19/03
see
ActivationGroup
since
1.2

Fields Summary
Constructors Summary
Methods Summary
public java.rmi.MarshalledObjectnewInstance(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 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

param
id the object's activation identifier
param
desc the object's descriptor
return
a marshalled object containing the serialized representation of remote object's stub
exception
ActivationException if object activation fails
exception
RemoteException if remote call fails
since
1.2