Annotation Interface CachedReturnPlugin.Enhance

Enclosing class:
CachedReturnPlugin

@Documented @Target(METHOD) @Retention(RUNTIME) public static @interface CachedReturnPlugin.Enhance
Indicates methods that should be cached, i.e. where the return value is stored in a synthetic field. For this to be possible, the returned value should not be altered and the instance must be thread-safe if the value might be used from multiple threads.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The fields name or an empty string if the name should be generated randomly.
  • Element Details

    • value

      String value
      The fields name or an empty string if the name should be generated randomly.
      Returns:
      The fields name or an empty string if the name should be generated randomly.
      Default:
      ""