FileDocCategorySizeDatePackage
NamedWeakReference.javaAPI DocJava SE 5 API596Fri Aug 26 14:55:16 BST 2005com.sun.naming.internal

NamedWeakReference.java

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

package com.sun.naming.internal;


/**
 * A NamedWeakReference is a WeakReference with an immutable string name.
 *
 * @author Scott Seligman
 * @version 1.4 03/12/19
 */


class NamedWeakReference extends java.lang.ref.WeakReference {

    private final String name;

    NamedWeakReference(Object referent, String name) {
	super(referent);
	this.name = name;
    }

    String getName() {
	return name;
    }
}