public class ResolveResult extends Objectimplements Serializable
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.
| 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.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ResolveResult()
Constructs an instance of ResolveResult with the resolved object and remaining name both initialized to null.
|
|
ResolveResult(Object
Constructs a new instance of ResolveResult consisting of the resolved Object and the remaining name.
|
|
ResolveResult(Object
Constructs a new instance of ResolveResult consisting of the resolved object and the remaining unresolved component.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendRemainingComponent(String
Adds a single component to the end of remaining name.
|
void |
appendRemainingName(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
Sets the remaining name field of this result to name.
|
void |
setResolvedObj(Object
Sets the resolved Object field of this result to obj.
|
protected ObjectresolvedObj
protected NameremainingName
protected ResolveResult()
public ResolveResult(Objectrobj, String rcomp)
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).
public NamegetRemainingName()
appendRemainingName(javax.naming.Name),
appendRemainingComponent(java.lang.String),
setRemainingName(javax.naming.Name)
public ObjectgetResolvedObj()
setResolvedObj(java.lang.Object)
public void setRemainingName(Namename)
name and vice versa.
name - The name to set remaining name to. Cannot be null.
getRemainingName(),
appendRemainingName(javax.naming.Name),
appendRemainingComponent(java.lang.String)
public void appendRemainingName(Namename)
name - The components to add. Can be null.
getRemainingName(),
setRemainingName(javax.naming.Name),
appendRemainingComponent(java.lang.String)
public void appendRemainingComponent(Stringname)
name - The component to add. Can be null.
getRemainingName(),
appendRemainingName(javax.naming.Name)
public void setResolvedObj(Objectobj)
obj - The object to use for setting the resolved obj field. Cannot be null.
getResolvedObj()