facets.util.app
Class ProvidingCache.ItemProvider<T>

java.lang.Object
  extended by facets.util.app.WatchableOperation
      extended by facets.util.app.ProvidingCache.ItemProvider<T>
Enclosing class:
ProvidingCache

public abstract static class ProvidingCache.ItemProvider<T>
extends WatchableOperation

WatchableOperation that creates items for storage and return by ProvidingCache.

Note: In contrast to the superclass, cancelStyle() returns true by default.


Nested Class Summary
 
Nested classes/interfaces inherited from class facets.util.app.WatchableOperation
WatchableOperation.CancelStyle
 
Constructor Summary
ProvidingCache.ItemProvider(ProvidingCache c, java.lang.Object source, java.lang.String title)
           
 
Method Summary
protected  long advanceByteCount()
           
 WatchableOperation.CancelStyle cancelStyle()
          Re-implementation.
 java.lang.Object doReturnableOperation()
           
protected  long finalByteCount(java.lang.Object storeReady)
           
 T getForValues(java.lang.Object... values)
           
 T getNewForValues(java.lang.Object... values)
           
 boolean hasForValues(java.lang.Object... values)
           
protected  int maximumSharePct()
           
protected abstract  T newItem()
           
protected  java.lang.Object packItem(T item)
           
protected  boolean packsItems()
           
protected  boolean passThrough()
           
 void removeAll()
           
 void removeForValues(java.lang.Object... values)
           
protected  T unpackItem(java.lang.Object packed)
           
 
Methods inherited from class facets.util.app.WatchableOperation
doSimpleOperation, getBlockingCancelTexts, newContentCreationTexts, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProvidingCache.ItemProvider

public ProvidingCache.ItemProvider(ProvidingCache c,
                                   java.lang.Object source,
                                   java.lang.String title)
Method Detail

cancelStyle

public WatchableOperation.CancelStyle cancelStyle()
Re-implementation.

Overrides:
cancelStyle in class WatchableOperation
Returns:
true by default .

passThrough

protected boolean passThrough()

doReturnableOperation

public java.lang.Object doReturnableOperation()
Overrides:
doReturnableOperation in class WatchableOperation

getForValues

public final T getForValues(java.lang.Object... values)

getNewForValues

public final T getNewForValues(java.lang.Object... values)

hasForValues

public final boolean hasForValues(java.lang.Object... values)

removeForValues

public final void removeForValues(java.lang.Object... values)

removeAll

public final void removeAll()

maximumSharePct

protected int maximumSharePct()

advanceByteCount

protected long advanceByteCount()

newItem

protected abstract T newItem()

finalByteCount

protected long finalByteCount(java.lang.Object storeReady)

packsItems

protected boolean packsItems()

packItem

protected java.lang.Object packItem(T item)

unpackItem

protected T unpackItem(java.lang.Object packed)