Copyright 2002 by aragost

com.aragost.araspect
Class ObjectRef

java.lang.Object
  |
  +--com.aragost.araspect.ObjectRef

public abstract class ObjectRef
extends java.lang.Object

An ObjectRef is a wrapper around a value. You get the value with the method getValue(). It can return the same Object each time, or it can create a new Object for each call. Typically ObjectRefs that recalculate the value for each call of getValue() is create as anonymous subclasses.


Constructor Summary
ObjectRef()
           
 
Method Summary
static ObjectRef constant(java.lang.Object value)
          Factory method to create an ObjectRef that always return the same Object.
abstract  java.lang.Object getValue()
          Return the value this ObjectRef is refenrencing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectRef

public ObjectRef()
Method Detail

getValue

public abstract java.lang.Object getValue()
                                   throws EvaluationException
Return the value this ObjectRef is refenrencing

Returns:
DOCUMENT ME!
Throws:
EvaluationException - DOCUMENT ME!

constant

public static ObjectRef constant(java.lang.Object value)
Factory method to create an ObjectRef that always return the same Object.

Parameters:
value - DOCUMENT ME!
Returns:
DOCUMENT ME!

Copyright 2002 by aragost