Package org.picocontainer.references
Class SimpleReference<T>
java.lang.Object
org.picocontainer.references.SimpleReference<T>
- All Implemented Interfaces:
Serializable,ObjectReference<T>
Simple instance implementation of ObjectReference.
- Author:
- Aslak Hellesøy, Konstantin Pribluda
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleReference
public SimpleReference()
-
-
Method Details
-
get
Description copied from interface:ObjectReferenceRetrieve an actual reference to the object. Returns null if the reference is not available or has not been populated yet.- Specified by:
getin interfaceObjectReference<T>- Returns:
- an actual reference to the object.
-
set
Description copied from interface:ObjectReferenceAssign an object to the reference.- Specified by:
setin interfaceObjectReference<T>- Parameters:
item- the object to assign to the reference. May benull.
-