Class CacheAwareJavassistClassBytecodeProcessor.CachingPolicy
- java.lang.Object
-
- org.zeroturnaround.javarebel.integration.support.CacheAwareJavassistClassBytecodeProcessor.CachingPolicy
-
- Enclosing class:
- CacheAwareJavassistClassBytecodeProcessor
public static class CacheAwareJavassistClassBytecodeProcessor.CachingPolicy extends Object
A caching policy of aJavassistClassBytecodeProcessor. EveryJavassistClassBytecodeProcessormay choose to either never be cached or always be cached, optionally with a custom key.
-
-
Field Summary
Fields Modifier and Type Field Description static CacheAwareJavassistClassBytecodeProcessor.CachingPolicyALWAYSA caching policy signifying that a processor can always be cached.static CacheAwareJavassistClassBytecodeProcessor.CachingPolicyNEVERA caching policy signifying that a processor must never be cached.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetKey()Returns the optional key used by this caching policy.static CacheAwareJavassistClassBytecodeProcessor.CachingPolicykeyOnClasses(org.zeroturnaround.bundled.javassist.ClassPool cp, String... classNames)static CacheAwareJavassistClassBytecodeProcessor.CachingPolicykeyOnFlags(boolean flag)static CacheAwareJavassistClassBytecodeProcessor.CachingPolicykeyOnFlags(boolean... flags)static CacheAwareJavassistClassBytecodeProcessor.CachingPolicywithKey(String key)
-
-
-
Field Detail
-
ALWAYS
public static final CacheAwareJavassistClassBytecodeProcessor.CachingPolicy ALWAYS
A caching policy signifying that a processor can always be cached.
-
NEVER
public static final CacheAwareJavassistClassBytecodeProcessor.CachingPolicy NEVER
A caching policy signifying that a processor must never be cached.
-
-
Method Detail
-
getKey
public String getKey()
Returns the optional key used by this caching policy.- Returns:
- the key used by this policy if any, or
null
-
keyOnFlags
public static CacheAwareJavassistClassBytecodeProcessor.CachingPolicy keyOnFlags(boolean flag)
-
keyOnFlags
public static CacheAwareJavassistClassBytecodeProcessor.CachingPolicy keyOnFlags(boolean... flags)
-
keyOnClasses
public static CacheAwareJavassistClassBytecodeProcessor.CachingPolicy keyOnClasses(org.zeroturnaround.bundled.javassist.ClassPool cp, String... classNames)
-
withKey
public static CacheAwareJavassistClassBytecodeProcessor.CachingPolicy withKey(String key)
-
-