Class ResolveResult
java.lang.Object
javax.naming.spi.ResolveResult
- All Implemented Interfaces:
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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs an instance of ResolveResult with the resolved object and remaining name both initialized to null.ResolveResult(Object robj, String rcomp) Constructs a new instance of ResolveResult consisting of the resolved object and the remaining unresolved component.ResolveResult(Object robj, Name rname) Constructs a new instance of ResolveResult consisting of the resolved Object and the remaining name. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a single component to the end of remaining name.voidappendRemainingName(Name name) Adds components to the end of remaining name.Retrieves the remaining unresolved portion of the name.Retrieves the Object to which resolution was successful.voidsetRemainingName(Name name) Sets the remaining name field of this result to name.voidsetResolvedObj(Object obj) Sets the resolved Object field of this result to obj.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.booleanCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.inthashCode()Answers an integer hash code for the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.toString()Answers a string containing a concise, human-readable description of the receiver.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.
-
Field Details
-
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
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 Details
-
ResolveResult
protected ResolveResult()Constructs an instance of ResolveResult with the resolved object and remaining name both initialized to null. -
ResolveResult
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).
-
ResolveResult
-
-
Method Details
-
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:
-
getResolvedObj
Retrieves the Object to which resolution was successful.- Returns:
- The Object to which resolution was successful. Cannot be null.
- See Also:
-
setRemainingName
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 affectnameand vice versa.- Parameters:
name- The name to set remaining name to. Cannot be null.- See Also:
-
appendRemainingName
Adds components to the end of remaining name.- Parameters:
name- The components to add. Can be null.- See Also:
-
appendRemainingComponent
Adds a single component to the end of remaining name.- Parameters:
name- The component to add. Can be null.- See Also:
-
setResolvedObj
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:
-