public class Reference extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Reference.Action |
| Constructor and Description |
|---|
Reference(String name)
Create a reference to the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get()
Gets the referenced object instance or null if the reference has not been resolved yet;
|
String |
getName()
Gets the name of the referenced object.
|
boolean |
isResolved()
Has this reference been resolved?
|
void |
set(Object object)
Sets the referenced object instance.
|
void |
setAction(Reference.Action action)
Registers an action to invoke when the instance is set.
|
public Reference(String name)
name - the name of the referenced objectpublic String getName()
public boolean isResolved()
public Object get()
public void set(Object object)
object - the reference instancepublic void setAction(Reference.Action action)
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.