Class Reference
java.lang.Object
org.apache.xbean.recipe.Reference
Reference is a named (lazy) reference from one object to another. This data class is updated when the reference
is resolved which can be immedately when the ref is created, or later when an instance with the referenced
name is created.
When the reference is resolved, an optional Action will be invoked which is commonly used to update a
property on the source object of the reference.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Gets the referenced object instance or null if the reference has not been resolved yet;getName()Gets the name of the referenced object.booleanHas this reference been resolved?voidSets the referenced object instance.voidsetAction(Reference.Action action) Registers an action to invoke when the instance is set.
-
Constructor Details
-
Reference
-
-
Method Details
-
getName
-
isResolved
Has this reference been resolved?- Returns:
- true if the reference has been resolved; false otherwise
-
get
-
set
-
setAction
Registers an action to invoke when the instance is set. If the instance, has already been set, the onSet method will immedately be invoked.
-