org.objectweb.carol.cmi
Class WeakRef

java.lang.Object
  extended byjava.lang.ref.Reference
      extended byjava.lang.ref.WeakReference
          extended byorg.objectweb.carol.cmi.WeakRef

public abstract class WeakRef
extends java.lang.ref.WeakReference

This WeakRef is a WeakReference has its method remove() called when the corresponding object has been garbage collected.

Author:
Simon Nieuviarts

Constructor Summary
WeakRef(java.lang.Object obj)
          Creates a new WeakRef instance
 
Method Summary
protected abstract  void remove()
          Remove the current instance
 
Methods inherited from class java.lang.ref.Reference
clear, enqueue, get, isEnqueued
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeakRef

public WeakRef(java.lang.Object obj)
Creates a new WeakRef instance

Parameters:
obj - object
Method Detail

remove

protected abstract void remove()
Remove the current instance