Package net.bytebuddy.build
Annotation Type CachedReturnPlugin.Enhance
-
@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.
-
-
Element Detail
-
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:
- ""
-
-