java.rmi.activation

Interface ActivationInstantiator

  • All Superinterfaces:
    Remote
    All Known Implementing Classes:
    ActivationGroup, ActivationGroup_Stub

    public interface ActivationInstantiator
    extends 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
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      MarshalledObject<? extends Remote> 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.

        

    • Method Detail

      • newInstance

        MarshalledObject<? extends Remote> newInstance(ActivationID id,
                                                     ActivationDesc desc)
                                                       throws ActivationException,
                                                              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:
        • 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
        Throws:
        ActivationException - if object activation fails
        RemoteException - if remote call fails
        Since:
        1.2

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 01/09/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-java/rmi/activation/activationinstantiator.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, ActivationInstantiator

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut