org.picocontainer.behaviors
Class ThreadCached<T>
java.lang.Object
org.picocontainer.behaviors.AbstractBehavior<T>
org.picocontainer.behaviors.Stored<T>
org.picocontainer.behaviors.ThreadCached<T>
- All Implemented Interfaces:
- Serializable, Behavior<T>, ComponentAdapter<T>, ComponentLifecycle<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
Method Summary |
String |
getDescriptor()
Get a string key descriptor of the component adapter for use in toString() |
Methods inherited from class org.picocontainer.behaviors.AbstractBehavior |
accept, changeMonitor, currentMonitor, dispose, findAdapterOfType, getComponentImplementation, getComponentInstance, getComponentKey, getDelegate, hasLifecycle, isLazy, start, stop, toString, verify |
ThreadCached
public ThreadCached(ComponentAdapter<T> delegate)
getDescriptor
public String getDescriptor()
- Description copied from interface:
ComponentAdapter
- Get a string key descriptor of the component adapter for use in toString()
- Specified by:
getDescriptor
in interface ComponentAdapter<T>
- Overrides:
getDescriptor
in class Stored<T>
- Returns:
- the descriptor
Copyright © 2003-2010 Codehaus. All Rights Reserved.