it.biobytes.ammentos.util
Class ReferenceMarker
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReferenceMarker
public ReferenceMarker()
- Creates a new instance of ReferenceMarker
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()