org.openide.util.lookup
Class AbstractLookup.ReferenceToResult<T>

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.WeakReference<AbstractLookup.R<T>>
          extended by org.openide.util.lookup.AbstractLookup.ReferenceToResult<T>
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
AbstractLookup

static final class AbstractLookup.ReferenceToResult<T>
extends java.lang.ref.WeakReference<AbstractLookup.R<T>>
implements java.lang.Runnable

Reference to a result R


Field Summary
 java.lang.Object caches
          caches for results
 AbstractLookup lookup
          the lookup we are attached to
 Lookup.Template<T> template
          the template for the result
 
Method Summary
 void cloneList(AbstractLookup.Storage<?> storage)
          Clones the reference list to given Storage.
(package private)  AbstractLookup.R<T> getResult()
          Returns the result or null
 void run()
          Cleans the reference.
 
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

template

public final Lookup.Template<T> template
the template for the result


lookup

public final AbstractLookup lookup
the lookup we are attached to


caches

public java.lang.Object caches
caches for results

Method Detail

getResult

AbstractLookup.R<T> getResult()
Returns the result or null


run

public void run()
Cleans the reference. Implements Runnable interface, do not call directly.

Specified by:
run in interface java.lang.Runnable

cloneList

public void cloneList(AbstractLookup.Storage<?> storage)
Clones the reference list to given Storage.

Parameters:
storage - storage to clone to