KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > naming > internal > NamedWeakReference


1 /*
2  * @(#)NamedWeakReference.java 1.4 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.naming.internal;
9
10
11 /**
12  * A NamedWeakReference is a WeakReference with an immutable string name.
13  *
14  * @author Scott Seligman
15  * @version 1.4 03/12/19
16  */

17
18
19 class NamedWeakReference extends java.lang.ref.WeakReference JavaDoc {
20
21     private final String JavaDoc name;
22
23     NamedWeakReference(Object JavaDoc referent, String JavaDoc name) {
24     super(referent);
25     this.name = name;
26     }
27
28     String JavaDoc getName() {
29     return name;
30     }
31 }
32
Popular Tags