java.lang.Object | |
↳ | javax.naming.spi.ResolveResult |
![]() |
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.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
remainingName | Field containing the remaining name yet to be resolved. | ||||||||||
resolvedObj | Field containing the Object that was resolved to successfully. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance of ResolveResult consisting of
the resolved object and the remaining unresolved component.
| |||||||||||
Constructs a new instance of ResolveResult consisting of
the resolved Object and the remaining name.
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an instance of ResolveResult with the
resolved object and remaining name both initialized to null.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a single component to the end of remaining 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.
| |||||||||||
Sets the remaining name field of this result to name.
| |||||||||||
Sets the resolved Object field of this result to obj.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Field containing the remaining name yet to be resolved. It can be null only when constructed using a subclass. Constructors should always initialize this.
Field containing the Object that was resolved to successfully. It can be null only when constructed using a subclass. Constructors should always initialize this.
Constructs a new instance of ResolveResult consisting of the resolved object and the remaining unresolved component.
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). |
Constructs a new instance of ResolveResult consisting of the resolved Object and the remaining name.
robj | The non-null Object resolved to. |
---|---|
rname | The non-null remaining name that has yet to be resolved. |
Constructs an instance of ResolveResult with the resolved object and remaining name both initialized to null.
Adds a single component to the end of remaining name.
name | The component to add. Can be null. |
---|
Adds components to the end of remaining name.
name | The components to add. Can be null. |
---|
Retrieves the remaining unresolved portion of the name.
Retrieves the Object to which resolution was successful.
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 affect name
and
vice versa.
name | The name to set remaining name to. Cannot be null. |
---|
Sets the resolved Object field of this result to obj.
obj | The object to use for setting the resolved obj field. Cannot be null. |
---|