it.biobytes.ammentos.util
Class ReferenceMarker

java.lang.Object
  extended by it.biobytes.ammentos.util.ReferenceMarker

public class ReferenceMarker
extends java.lang.Object

Marks references of the provided objects. This class mantains a collections of marked objects, whithout preventing them from being garbage collected. This special behavior allows the system to keeping trace of loaded objects.

Author:
Davide Deidda

Constructor Summary
ReferenceMarker()
          Creates a new instance of ReferenceMarker
 
Method Summary
protected  void expungeStaleEntries()
           
 boolean isMarked(java.lang.Object obj)
           
 void mark(java.lang.Object obj)
           
 void unmark(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceMarker

public ReferenceMarker()
Creates a new instance of ReferenceMarker

Method Detail

mark

public void mark(java.lang.Object obj)

unmark

public void unmark(java.lang.Object obj)

isMarked

public boolean isMarked(java.lang.Object obj)

expungeStaleEntries

protected void expungeStaleEntries()