Class ThreadLocalHolder


  • public final class ThreadLocalHolder
    extends Object
    Just another data holder that stores data in a threadlocal map. If you only want to share data across serializers and deserializers prefer using Context. Internally Genson uses it for the spring webmvc integration, so it can pass method signatures and extract its annotations, etc.
    Author:
    Eugen Cepoi
    See Also:
    Context, ExtendedReqRespBodyMethodProcessor, GensonMessageConverter
    • Constructor Detail

      • ThreadLocalHolder

        public ThreadLocalHolder()
    • Method Detail

      • remove

        public static <T> T remove​(String key,
                                   Class<T> valueType)
      • get

        public static <T> T get​(String key,
                                Class<T> valueType)