java.rmi.activation
Interface ActivationInstantiator

All Superinterfaces:
Remote sample code for java.rmi.Remote definition code for java.rmi.Remote
All Known Implementing Classes:
ActivationGroup sample code for java.rmi.activation.ActivationGroup definition code for java.rmi.activation.ActivationGroup

public interface ActivationInstantiator
extends Remote sample code for java.rmi.Remote definition code for java.rmi.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.

Since:
1.2
See Also:
ActivationGroup sample code for java.rmi.activation.ActivationGroup definition code for java.rmi.activation.ActivationGroup

Method Summary
 MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject newInstance sample code for java.rmi.activation.ActivationInstantiator.newInstance(java.rmi.activation.ActivationID, java.rmi.activation.ActivationDesc) definition code for java.rmi.activation.ActivationInstantiator.newInstance(java.rmi.activation.ActivationID, java.rmi.activation.ActivationDesc) (ActivationID sample code for java.rmi.activation.ActivationID definition code for java.rmi.activation.ActivationID  id, ActivationDesc sample code for java.rmi.activation.ActivationDesc definition code for java.rmi.activation.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.
 

Method Detail

newInstance sample code for java.rmi.activation.ActivationInstantiator.newInstance(java.rmi.activation.ActivationID, java.rmi.activation.ActivationDesc) definition code for java.rmi.activation.ActivationInstantiator.newInstance(java.rmi.activation.ActivationID, java.rmi.activation.ActivationDesc)

MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  newInstance(ActivationID sample code for java.rmi.activation.ActivationID definition code for java.rmi.activation.ActivationID  id,
                             ActivationDesc sample code for java.rmi.activation.ActivationDesc definition code for java.rmi.activation.ActivationDesc  desc)
                             throws ActivationException sample code for java.rmi.activation.ActivationException definition code for java.rmi.activation.ActivationException ,
                                    RemoteException sample code for java.rmi.RemoteException definition code for java.rmi.RemoteException 
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:

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
Throws:
ActivationException sample code for java.rmi.activation.ActivationException definition code for java.rmi.activation.ActivationException - if object activation fails
RemoteException sample code for java.rmi.RemoteException definition code for java.rmi.RemoteException - if remote call fails
Since:
1.2