net.jini.loader.pref
Class PreferredClassProvider.LoaderEntry

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

private class PreferredClassProvider.LoaderEntry
extends WeakReference

Loader table value: a weak reference to a class loader. The weak reference is registered with "refQueue" so that the entry can be removed after the loader has become unreachable.


Field Summary
 PreferredClassProvider.LoaderKey key
           
 boolean removed
          set to true if the entry has been removed from the table because it has been replaced, so it should not be attempted to be removed again
 
Constructor Summary
PreferredClassProvider.LoaderEntry(PreferredClassProvider.LoaderKey key, ClassLoader loader)
           
 
Method Summary
 
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
 

Field Detail

key

public final PreferredClassProvider.LoaderKey key

removed

public boolean removed
set to true if the entry has been removed from the table because it has been replaced, so it should not be attempted to be removed again

Constructor Detail

PreferredClassProvider.LoaderEntry

public PreferredClassProvider.LoaderEntry(PreferredClassProvider.LoaderKey key,
                                          ClassLoader loader)


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