Package 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
This behavior supports caches values per thread.
- Author:
- Paul Hammant
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.picocontainer.behaviors.Stored
Stored.Instance<T>
Nested classes/interfaces inherited from interface org.picocontainer.ComponentAdapter
ComponentAdapter.NOTHING
-
Field Summary
Fields inherited from class org.picocontainer.behaviors.AbstractBehavior
delegate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a string key descriptor of the component adapter for use in toString()Methods inherited from class org.picocontainer.behaviors.Stored
componentHasLifecycle, dispose, flush, getComponentInstance, getLifecycleDescriptor, getStoredObject, isStarted, start, stop
Methods inherited from class org.picocontainer.behaviors.AbstractBehavior
accept, changeMonitor, currentMonitor, dispose, findAdapterOfType, getComponentImplementation, getComponentInstance, getComponentKey, getDelegate, hasLifecycle, isLazy, start, stop, toString, verify
-
Constructor Details
-
ThreadCached
-
-
Method Details
-
getDescriptor
Description copied from interface:ComponentAdapter
Get a string key descriptor of the component adapter for use in toString()- Specified by:
getDescriptor
in interfaceComponentAdapter<T>
- Overrides:
getDescriptor
in classStored<T>
- Returns:
- the descriptor
-