com.oakgrovesystems.util
Interface ObjectReference

All Known Implementing Classes:
ReactorObjectId

public interface ObjectReference

Instances of implementations of the ObjectReference interface represent references to objects not necessarily instantiated in the current JVM's memory. They encapsulate the data and logic necessary to construct or otherwise retrieve and return a reference to a java representation of that object in the current JVM's memory.

For example, an implementation of ObjectReference might be used to refer to objects in a database which may not necessarily be needed in the JVM's memory. The implementation would contain the necessary data and logic to properly query the database and instantiate a java representation of the object if the implementation's dereference() method is called.


Method Summary
 java.lang.Object dereference(java.lang.Class type)
          Returns a reference to a java representation of the object referenced by this ObjectReference.
 

Method Detail

dereference

public java.lang.Object dereference(java.lang.Class type)
                             throws ObjectDereferencingException
Returns a reference to a java representation of the object referenced by this ObjectReference. The java reference will be an instance of the Class type.

ObjectDereferencingException


Copyright (c) 1999-2004 Oak Grove Systems. All Rights Reserved.