Annotation Interface ThreadLocal


A CustomScope that stores objects in thread local storage.
Since:
1.0
Author:
Graeme Rocher
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    If enabled, track bean life cycle.
  • Element Details

    • lifecycle

      boolean lifecycle
      If 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