public static class CacheAwareJavassistClassBytecodeProcessor.CachingPolicy extends Object
JavassistClassBytecodeProcessor. Every JavassistClassBytecodeProcessor may
choose to either never be cached or always be cached, optionally with a custom key.| Modifier and Type | Field and Description |
|---|---|
static CacheAwareJavassistClassBytecodeProcessor.CachingPolicy |
ALWAYS
A caching policy signifying that a processor can always be cached.
|
static CacheAwareJavassistClassBytecodeProcessor.CachingPolicy |
NEVER
A caching policy signifying that a processor must never be cached.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getKey()
Returns the optional key used by this caching policy.
|
static CacheAwareJavassistClassBytecodeProcessor.CachingPolicy |
keyOnClasses(org.zeroturnaround.bundled.javassist.ClassPool cp,
String... classNames) |
static CacheAwareJavassistClassBytecodeProcessor.CachingPolicy |
keyOnFlags(boolean... flags) |
static CacheAwareJavassistClassBytecodeProcessor.CachingPolicy |
keyOnFlags(boolean flag) |
static CacheAwareJavassistClassBytecodeProcessor.CachingPolicy |
withKey(String key) |
public static final CacheAwareJavassistClassBytecodeProcessor.CachingPolicy ALWAYS
public static final CacheAwareJavassistClassBytecodeProcessor.CachingPolicy NEVER
public String getKey()
nullpublic static CacheAwareJavassistClassBytecodeProcessor.CachingPolicy keyOnFlags(boolean flag)
public static CacheAwareJavassistClassBytecodeProcessor.CachingPolicy keyOnFlags(boolean... flags)
public static CacheAwareJavassistClassBytecodeProcessor.CachingPolicy keyOnClasses(org.zeroturnaround.bundled.javassist.ClassPool cp, String... classNames)
public static CacheAwareJavassistClassBytecodeProcessor.CachingPolicy withKey(String key)
Copyright © 2019. All rights reserved.