- java.lang.Object
-
- javax.naming.spi.ResolveResult
-
- All Implemented Interfaces:
- Serializable
public class ResolveResult extends Object implements Serializable
This class represents the result of resolution of a name. It contains the object to which name was resolved, and the portion of the name that has not been resolved.A ResolveResult instance is not synchronized against concurrent multithreaded access. Multiple threads trying to access and modify a single ResolveResult instance should lock the object.
- Since:
- 1.3
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description protected Name
remainingName
Field containing the remaining name yet to be resolved.protected Object
resolvedObj
Field containing the Object that was resolved to successfully.
-
Constructor Summary
Constructors Modifier Constructor and Description protected
ResolveResult()
Constructs an instance of ResolveResult with the resolved object and remaining name both initialized to null.ResolveResult(Object robj, Name rname)
Constructs a new instance of ResolveResult consisting of the resolved Object and the remaining name.ResolveResult(Object robj, String rcomp)
Constructs a new instance of ResolveResult consisting of the resolved object and the remaining unresolved component.
-
Method Summary
Methods Modifier and Type Method and Description void
appendRemainingComponent(String name)
Adds a single component to the end of remaining name.void
appendRemainingName(Name name)
Adds components to the end of remaining name.Name
getRemainingName()
Retrieves the remaining unresolved portion of the name.Object
getResolvedObj()
Retrieves the Object to which resolution was successful.void
setRemainingName(Name name)
Sets the remaining name field of this result to name.void
setResolvedObj(Object obj)
Sets the resolved Object field of this result to obj.
-
-
-
Field Detail
-
resolvedObj
protected Object resolvedObj
Field containing the Object that was resolved to successfully. It can be null only when constructed using a subclass. Constructors should always initialize this.
-
remainingName
protected Name remainingName
Field containing the remaining name yet to be resolved. It can be null only when constructed using a subclass. Constructors should always initialize this.
-
-
Constructor Detail
-
ResolveResult
protected ResolveResult()
Constructs an instance of ResolveResult with the resolved object and remaining name both initialized to null.
-
ResolveResult
public ResolveResult(Object robj, String rcomp)
Constructs a new instance of ResolveResult consisting of the resolved object and the remaining unresolved component.- Parameters:
robj
- The non-null object resolved to.rcomp
- The single remaining name component that has yet to be resolved. Cannot be null (but can be empty).
-
-
Method Detail
-
getRemainingName
public Name getRemainingName()
Retrieves the remaining unresolved portion of the name.- Returns:
- The remaining unresolved portion of the name. Cannot be null but empty OK.
- See Also:
appendRemainingName(javax.naming.Name)
,appendRemainingComponent(java.lang.String)
,setRemainingName(javax.naming.Name)
-
getResolvedObj
public Object getResolvedObj()
Retrieves the Object to which resolution was successful.- Returns:
- The Object to which resolution was successful. Cannot be null.
- See Also:
setResolvedObj(java.lang.Object)
-
setRemainingName
public void setRemainingName(Name name)
Sets the remaining name field of this result to name. A copy of name is made so that modifying the copy within this ResolveResult does not affectname
and vice versa.- Parameters:
name
- The name to set remaining name to. Cannot be null.- See Also:
getRemainingName()
,appendRemainingName(javax.naming.Name)
,appendRemainingComponent(java.lang.String)
-
appendRemainingName
public void appendRemainingName(Name name)
Adds components to the end of remaining name.- Parameters:
name
- The components to add. Can be null.- See Also:
getRemainingName()
,setRemainingName(javax.naming.Name)
,appendRemainingComponent(java.lang.String)
-
appendRemainingComponent
public void appendRemainingComponent(String name)
Adds a single component to the end of remaining name.- Parameters:
name
- The component to add. Can be null.- See Also:
getRemainingName()
,appendRemainingName(javax.naming.Name)
-
setResolvedObj
public void setResolvedObj(Object obj)
Sets the resolved Object field of this result to obj.- Parameters:
obj
- The object to use for setting the resolved obj field. Cannot be null.- See Also:
getResolvedObj()
-
-
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.
Version en cache
05/11/2024 21:32:33 Cette version de la page est en cache (à la date du 05/11/2024 21:32:33) afin d'accélérer le traitement. Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la dernère version de la page.Document créé le 31/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/naming/spi/ResolveResult.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
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.