org.apache.xbean.recipe
public class Reference extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Reference.Action |
Constructor and Description |
---|
Reference(java.lang.String name)
Create a reference to the specified name.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get()
Gets the referenced object instance or null if the reference has not been resolved yet;
|
java.lang.String |
getName()
Gets the name of the referenced object.
|
boolean |
isResolved()
Has this reference been resolved?
|
void |
set(java.lang.Object object)
Sets the referenced object instance.
|
void |
setAction(Reference.Action action)
Registers an action to invoke when the instance is set.
|
public Reference(java.lang.String name)
name
- the name of the referenced objectpublic java.lang.String getName()
public boolean isResolved()
public java.lang.Object get()
public void set(java.lang.Object object)
object
- the reference instancepublic void setAction(Reference.Action action)
Copyright © 2005-2016. All Rights Reserved.