javax.naming.spi

Interface InitialContextFactory


  • public interface InitialContextFactory
    This interface represents a factory that creates an initial context.

    The JNDI framework allows for different initial context implementations to be specified at runtime. The initial context is created using an initial context factory. An initial context factory must implement the InitialContextFactory interface, which provides a method for creating instances of initial context that implement the Context interface. In addition, the factory class must be public and must have a public constructor that accepts no arguments.

    Since:
    1.3
    See Also:
    InitialContextFactoryBuilder, NamingManager.getInitialContext(java.util.Hashtable<?, ?>), InitialContext, InitialDirContext
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      Context getInitialContext(Hashtable<?,?> environment)
      Creates an Initial Context for beginning name resolution.

        

    • Method Detail

      • getInitialContext

        Context getInitialContext(Hashtable<?,?> environment)
                                  throws NamingException
        Creates an Initial Context for beginning name resolution. Special requirements of this context are supplied using environment.

        The environment parameter is owned by the caller. The implementation will not modify the object or keep a reference to it, although it may keep a reference to a clone or copy.

        Parameters:
        environment - The possibly null environment specifying information to be used in the creation of the initial context.
        Returns:
        A non-null initial context object that implements the Context interface.
        Throws:
        NamingException - If cannot create an initial context.

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-javax/naming/spi/InitialContextFactory.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, InitialContextFactory

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