Class CacheAwareJavassistClassBytecodeProcessor.CachingPolicy
java.lang.Object
org.zeroturnaround.javarebel.integration.support.CacheAwareJavassistClassBytecodeProcessor.CachingPolicy
- Enclosing class:
- CacheAwareJavassistClassBytecodeProcessor
A caching policy of a
JavassistClassBytecodeProcessor. Every JavassistClassBytecodeProcessor may
choose to either never be cached or always be cached, optionally with a custom key.-
Field Summary
FieldsModifier and TypeFieldDescriptionA caching policy signifying that a processor can always be cached.A caching policy signifying that a processor must never be cached. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Returns the optional key used by this caching policy.keyOnClasses(org.zeroturnaround.bundled.javassist.ClassPool cp, String... classNames) keyOnFlags(boolean flag) keyOnFlags(boolean... flags)
-
Field Details
-
ALWAYS
A caching policy signifying that a processor can always be cached. -
NEVER
A caching policy signifying that a processor must never be cached.
-
-
Method Details
-
getKey
Returns the optional key used by this caching policy.- Returns:
- the key used by this policy if any, or
null
-
keyOnFlags
-
keyOnFlags
-
keyOnClasses
public static CacheAwareJavassistClassBytecodeProcessor.CachingPolicy keyOnClasses(org.zeroturnaround.bundled.javassist.ClassPool cp, String... classNames) -
withKey
-