net.jini.loader.pref
Class PreferredClassProvider.LoaderKey

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.WeakReference
          extended by net.jini.loader.pref.PreferredClassProvider.LoaderKey
Enclosing class:
PreferredClassProvider

private class PreferredClassProvider.LoaderKey
extends WeakReference

Loader table key: a codebase URL path and a weak reference to a parent class loader (possibly null). The weak reference is registered with "refQueue" so that the entry can be removed after the loader has become unreachable.


Field Summary
private  int hashValue
           
private  boolean nullParent
           
private  URL[] urls
           
 
Constructor Summary
PreferredClassProvider.LoaderKey(URL[] urls, ClassLoader parent)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.ref.Reference
clear, enqueue, get, isEnqueued
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

urls

private final URL[] urls

nullParent

private final boolean nullParent

hashValue

private final int hashValue
Constructor Detail

PreferredClassProvider.LoaderKey

public PreferredClassProvider.LoaderKey(URL[] urls,
                                        ClassLoader parent)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.