org.picocontainer.behaviors
Class ThreadCached<T>

java.lang.Object
  extended by org.picocontainer.behaviors.AbstractBehavior<T>
      extended by org.picocontainer.behaviors.Stored<T>
          extended by org.picocontainer.behaviors.ThreadCached<T>
All Implemented Interfaces:
Serializable, Behavior<T>, ComponentAdapter<T>, ComponentMonitorStrategy, LifecycleStrategy

public final class ThreadCached<T>
extends Stored<T>

This behavior supports caches values per thread.

Author:
Paul Hammant
See Also:
Serialized Form

Nested Class Summary
static class ThreadCached.ThreadLocalReference<T>
           
 
Field Summary
 
Fields inherited from class org.picocontainer.behaviors.Stored
delegateHasLifecylce, disposed, instanceReference, started
 
Fields inherited from class org.picocontainer.behaviors.AbstractBehavior
delegate
 
Constructor Summary
ThreadCached(ComponentAdapter<T> delegate)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class org.picocontainer.behaviors.Stored
componentHasLifecycle, dispose, flush, getComponentInstance, start, stop
 
Methods inherited from class org.picocontainer.behaviors.AbstractBehavior
accept, changeMonitor, currentMonitor, dispose, findAdapterOfType, getComponentImplementation, getComponentKey, getDelegate, hasLifecycle, start, stop, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThreadCached

public ThreadCached(ComponentAdapter<T> delegate)
Method Detail

toString

public String toString()
Overrides:
toString in class AbstractBehavior<T>


Copyright © 2003-2007 Codehaus. All Rights Reserved.