java.lang.Objectjavax.naming.spi.NamingManager
javax.naming.spi.DirectoryManager
public class DirectoryManager
This class contains methods for supporting DirContext implementations.
This class is an extension of NamingManager. It contains methods for use by service providers for accessing object factories and state factories, and for getting continuation contexts for supporting federation.
DirectoryManager is safe for concurrent access by multiple threads.
Except as otherwise noted, a Name, Attributes, or environment parameter passed to any method 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.
DirObjectFactory,
DirStateFactory| Field Summary |
|---|
| Fields inherited from class javax.naming.spi.NamingManager |
|---|
CPE |
| Method Summary | |
|---|---|
static DirContext |
getContinuationDirContext(CannotProceedException cpe)
Creates a context in which to continue a DirContext operation. |
static Object |
getObjectInstance(Object refInfo,
Name name,
Context nameCtx,
Hashtable<?,?> environment,
Attributes attrs)
Creates an instance of an object for the specified object, attributes, and environment. |
static DirStateFactory.Result |
getStateToBind(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment,
Attributes attrs)
Retrieves the state of an object for binding when given the original object and its attributes. |
| Methods inherited from class javax.naming.spi.NamingManager |
|---|
getContinuationContext, getInitialContext, getObjectInstance, getStateToBind, getURLContext, hasInitialContextFactoryBuilder, setInitialContextFactoryBuilder, setObjectFactoryBuilder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DirContext getContinuationDirContext(CannotProceedException cpe) throws NamingException
cpe - The non-null exception that triggered this continuation.
NamingException - If a naming exception occurred.NamingManager.getContinuationContext(CannotProceedException)public static Object getObjectInstance(Object refInfo, Name name, Context nameCtx, Hashtable<?,?> environment, Attributes attrs) throws Exception
This method is the same as NamingManager.getObjectInstance except for the following differences:
refInfo - The possibly null object for which to create an object.name - The name of this object relative to nameCtx.
Specifying a name is optional; if it is
omitted, name should be null.nameCtx - The context relative to which the name
parameter is specified. If null, name is
relative to the default initial context.environment - The possibly null environment to
be used in the creation of the object factory and the object.attrs - The possibly null attributes associated with refInfo.
This might not be the complete set of attributes for refInfo;
you might be able to read more attributes from the directory.
refInfo and attrs; or
refInfo if an object cannot be created by
a factory.
NamingException - If a naming exception was encountered
while attempting to get a URL context, or if one of the
factories accessed throws a NamingException.
Exception - If one of the factories accessed throws an
exception, or if an error was encountered while loading
and instantiating the factory and object classes.
A factory should only throw an exception if it does not want
other factories to be used in an attempt to create an object.
See DirObjectFactory.getObjectInstance().NamingManager.getURLContext(java.lang.String, java.util.Hashtable, ?>),
DirObjectFactory,
DirObjectFactory.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable, ?>, javax.naming.directory.Attributes)public static DirStateFactory.Result getStateToBind(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment, Attributes attrs) throws NamingException
This method is like NamingManager.getStateToBind except for the following differences:
See NamingManager.getStateToBind() for a description of how the list of state factories to be tried is determined.
The object returned by this method is owned by the caller. The implementation will not subsequently modify it. It will contain either a new Attributes object that is likewise owned by the caller, or a reference to the original attrs parameter.
obj - The non-null object for which to get state to bind.name - The name of this object relative to nameCtx,
or null if no name is specified.nameCtx - The context relative to which the name
parameter is specified, or null if name is
relative to the default initial context.environment - The possibly null environment to
be used in the creation of the state factory and
the object's state.attrs - The possibly null Attributes that is to be bound with the
object.
NamingException - If a naming exception was encountered
while using the factories.
A factory should only throw an exception if it does not want
other factories to be used in an attempt to create an object.
See DirStateFactory.getStateToBind().DirStateFactory,
DirStateFactory.getStateToBind(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable, ?>, javax.naming.directory.Attributes),
NamingManager.getStateToBind(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable, ?>)Ces informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
7 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)