Package net.bytebuddy.build
Annotation Interface CachedReturnPlugin.Enhance
- Enclosing class:
CachedReturnPlugin
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
-
Element Details
-
value
String valueThe 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:
""
-