org.picocontainer.defaults
Class SimpleReference

java.lang.Object
  extended by org.picocontainer.defaults.SimpleReference
All Implemented Interfaces:
java.io.Serializable, ObjectReference

public class SimpleReference
extends java.lang.Object
implements ObjectReference, java.io.Serializable

Version:
$Revision: 940 $
Author:
Aslak Hellesøy
See Also:
Serialized Form

Field Summary
private  java.lang.Object instance
           
 
Constructor Summary
SimpleReference()
           
 
Method Summary
 java.lang.Object get()
          Retrieve an actual reference to the object.
 void set(java.lang.Object item)
          Assign an object to the reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private java.lang.Object instance
Constructor Detail

SimpleReference

public SimpleReference()
Method Detail

get

public java.lang.Object get()
Description copied from interface: ObjectReference
Retrieve an actual reference to the object. Returns null if the reference is not available or has not been populated yet.

Specified by:
get in interface ObjectReference
Returns:
an actual reference to the object.

set

public void set(java.lang.Object item)
Description copied from interface: ObjectReference
Assign an object to the reference.

Specified by:
set in interface ObjectReference
Parameters:
item - the object to assign to the reference. May be null.