public final class ClassResolvers
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static ClassResolver |
cacheDisabled(java.lang.ClassLoader classLoader)
cache disabled
|
static ClassResolver |
softCachingConcurrentResolver(java.lang.ClassLoader classLoader)
agressive concurrent cache
good for shared cache, when we're not worried about class unloading
|
static ClassResolver |
softCachingResolver(java.lang.ClassLoader classLoader)
agressive non-concurrent cache
good for non-shared cache, when we're not worried about class unloading
|
static ClassResolver |
weakCachingConcurrentResolver(java.lang.ClassLoader classLoader)
non-agressive concurrent cache
good for shared cache, when we're worried about class unloading
|
static ClassResolver |
weakCachingResolver(java.lang.ClassLoader classLoader)
non-agressive non-concurrent cache
good for non-shared default cache
|
public static ClassResolver cacheDisabled(java.lang.ClassLoader classLoader)
classLoader
- - specific classLoader to use, or null if you want to revert to defaultpublic static ClassResolver weakCachingResolver(java.lang.ClassLoader classLoader)
classLoader
- - specific classLoader to use, or null if you want to revert to defaultpublic static ClassResolver softCachingResolver(java.lang.ClassLoader classLoader)
classLoader
- - specific classLoader to use, or null if you want to revert to defaultpublic static ClassResolver weakCachingConcurrentResolver(java.lang.ClassLoader classLoader)
classLoader
- - specific classLoader to use, or null if you want to revert to defaultpublic static ClassResolver softCachingConcurrentResolver(java.lang.ClassLoader classLoader)
classLoader
- - specific classLoader to use, or null if you want to revert to default