Annotation Interface ThreadLocal
@ScopedProxy
@Documented
@Retention(RUNTIME)
@Target({TYPE,METHOD})
@Scope
public @interface ThreadLocal
A
CustomScope
that stores objects in thread local storage.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Optional Element Summary
Optional Elements
-
Element Details
-
lifecycle
boolean lifecycleIf enabled, track bean life cycle. This means that the bean will be stopped, destroy listeners will be called etc., when the application context is closed or when the associated thread terminates. Note that this adds some overhead, so it's off by default.- Returns:
- Whether to enable lifecycle support for this bean
- Since:
- 4.9.0
- Default:
- false
-