org.omg.PortableInterceptor

Interface PolicyFactoryOperations

  • All Known Subinterfaces:
    PolicyFactory

    public interface PolicyFactoryOperations
    Enables policy types to be constructed using CORBA.ORB.create_policy.

    A portable ORB service implementation registers an instance of the PolicyFactory interface during ORB initialization in order to enable its policy types to be constructed using CORBA.ORB.create_policy. The POA is required to preserve any policy which is registered with ORBInitInfo in this manner.

    See Also:
    ORBInitInfoOperations.register_policy_factory(int, org.omg.PortableInterceptor.PolicyFactory)
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      Policy create_policy(int type, Any value)
      Returns an instance of the appropriate interface derived from CORBA.Policy whose value corresponds to the specified any.

        

    • Method Detail

      • create_policy

        Policy create_policy(int type,
                           Any value)
                             throws PolicyError
        Returns an instance of the appropriate interface derived from CORBA.Policy whose value corresponds to the specified any.

        The ORB calls create_policy on a registered PolicyFactory instance when CORBA.ORB.create_policy is called for the PolicyType under which the PolicyFactory has been registered. The create_policy operation then returns an instance of the appropriate interface derived from CORBA.Policy whose value corresponds to the specified any. If it cannot, it shall throw an exception as described for CORBA.ORB.create_policy.

        Parameters:
        type - An int specifying the type of policy being created.
        value - An any containing data with which to construct the CORBA.Policy.
        Returns:
        A CORBA.Policy object of the specified type and value.
        Throws:
        PolicyError

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 07/12/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-org/omg/PortableInterceptor/PolicyFactoryOperations.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, PolicyFactoryOperations

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