public final class GenericsInfoFactory
extends java.lang.Object
Note: when ignore classes used, cache will not work: such descriptors are always resolved.
Cache may be disabled (e.g. when JRebel used) by using environment variable or system property e.g.:
System.setProperty(GenericsInfoFactory.CACHE_PROPERTY, 'false').
Property value checked on cache write. To clear current cache state use static method.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CACHE_PROPERTY
System property or environment variable name to disable cache.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
clearCache()
Clears cached descriptors (already parsed).
|
static GenericsInfo |
create(java.lang.Class<?> type,
java.lang.Class<?>... ignoreClasses)
Note: ignore classes switch off caching for resolved descriptor (and if completely resolved version
contained in cache limited version will be composed one more time).
|
static void |
disableCache()
Disables descriptors cache.
|
static boolean |
isCacheEnabled() |
public static final java.lang.String CACHE_PROPERTY
public static GenericsInfo create(java.lang.Class<?> type, java.lang.Class<?>... ignoreClasses)
type - finder type to investigateignoreClasses - list of classes to ignore during inspection (useful to avoid interface clashes)public static void clearCache()
CACHE_PROPERTYpublic static void disableCache()
public static boolean isCacheEnabled()