Class ResolveResult

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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Name
    Field containing the remaining name yet to be resolved.
    protected Object
    Field containing the Object that was resolved to successfully.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructs 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 Type
    Method
    Description
    void
    Adds a single component to the end of remaining name.
    void
    Adds components to the end of remaining name.
    Retrieves the remaining unresolved portion of the name.
    Retrieves the Object to which resolution was successful.
    void
    Sets the remaining name field of this result to name.
    void
    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, wait
    Modifier and Type
    Method
    Description
    protected Object
    Creates and returns a copy of this object.
    boolean
    Indicates whether some other object is "equal to" this one.
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Finalization is deprecated and subject to removal in a future release.
    final Class<?>
    Returns the runtime class of this Object.
    int
    Returns a hash code value for this object.
    final void
    Wakes up a single thread that is waiting on this object's monitor.
    final void
    Wakes up all threads that are waiting on this object's monitor.
    Returns a string representation of the object.
    final void
    Causes the current thread to wait until it is awakened, typically by being notified or interrupted.
    final void
    wait(long timeoutMillis)
    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
    final void
    wait(long timeoutMillis, int nanos)
    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
  • Field Details

    • 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 Details

    • 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).
    • ResolveResult

      public ResolveResult(Object robj, Name rname)
      Constructs a new instance of ResolveResult consisting of the resolved Object and the remaining name.
      Parameters:
      robj - The non-null Object resolved to.
      rname - The non-null remaining name that has yet to be resolved.
  • Method Details