Package org.apache.xbean.recipe
Class ReferenceRecipe.WrapperReference
- java.lang.Object
-
- org.apache.xbean.recipe.Reference
-
- org.apache.xbean.recipe.ReferenceRecipe.WrapperReference
-
- Enclosing class:
- ReferenceRecipe
private static class ReferenceRecipe.WrapperReference extends Reference
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.xbean.recipe.Reference
Reference.Action
-
-
Constructor Summary
Constructors Modifier Constructor Description privateWrapperReference(java.lang.String name, Reference delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectget()Gets the referenced object instance or null if the reference has not been resolved yet;booleanisResolved()Has this reference been resolved?voidset(java.lang.Object object)Sets the referenced object instance.voidsetAction(Reference.Action action)Registers an action to invoke when the instance is set.
-
-
-
Field Detail
-
delegate
private final Reference delegate
-
-
Constructor Detail
-
WrapperReference
private WrapperReference(java.lang.String name, Reference delegate)
-
-
Method Detail
-
isResolved
public boolean isResolved()
Description copied from class:ReferenceHas this reference been resolved?- Overrides:
isResolvedin classReference- Returns:
- true if the reference has been resolved; false otherwise
-
get
public java.lang.Object get()
Description copied from class:ReferenceGets the referenced object instance or null if the reference has not been resolved yet;
-
set
public void set(java.lang.Object object)
Description copied from class:ReferenceSets the referenced object instance. If an action is registered the onSet method is invoked.
-
setAction
public void setAction(Reference.Action action)
Description copied from class:ReferenceRegisters an action to invoke when the instance is set. If the instance, has already been set, the onSet method will immedately be invoked.
-
-