01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.object;
05:
06: import java.lang.ref.ReferenceQueue;
07: import java.lang.ref.WeakReference;
08:
09: /**
10: * @author steve
11: */
12: public class WeakObjectReference extends WeakReference {
13: private final ObjectID id;
14:
15: public WeakObjectReference(ObjectID id, Object referent) {
16: super (referent);
17: this .id = id;
18: }
19:
20: public WeakObjectReference(ObjectID id, Object referent,
21: ReferenceQueue q) {
22: super (referent, q);
23: this .id = id;
24: }
25:
26: public ObjectID getObjectID() {
27: return id;
28: }
29: }
|