Annotation Type JsonCachable


@Target(TYPE) @Retention(RUNTIME) public @interface JsonCachable
Marker annotation used to denote whether given instance (currently only used with JsonDeserializer) can be cached.

Default action to take in absence of annotation depends on object using annotation; with deserializers default is to assume instances are not cachable.

Since:
1.1
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Default value is true, giving semantics for parameterless tag instance such that empty instance indicates that instances of annotated class are indeed cachable.
  • Element Details

    • value

      boolean value
      Default value is true, giving semantics for parameterless tag instance such that empty instance indicates that instances of annotated class are indeed cachable.
      Default:
      true