@Deprecated
public final class ClassResolvers
extends java.lang.Object
ClassResolver
instances.
Security: serialization can be a security liability, and should not be used without defining a list of classes that are allowed to be desirialized. Such a list can be specified with the jdk.serialFilter system property, for instance. See the serialization filtering article for more information.
限定符和类型 | 方法和说明 |
---|---|
static ClassResolver |
cacheDisabled(java.lang.ClassLoader classLoader)
已过时。
cache disabled
|
static ClassResolver |
softCachingConcurrentResolver(java.lang.ClassLoader classLoader)
已过时。
aggressive concurrent cache
good for shared cache, when we're not worried about class unloading
|
static ClassResolver |
softCachingResolver(java.lang.ClassLoader classLoader)
已过时。
aggressive non-concurrent cache
good for non-shared cache, when we're not worried about class unloading
|
static ClassResolver |
weakCachingConcurrentResolver(java.lang.ClassLoader classLoader)
已过时。
non-aggressive concurrent cache
good for shared cache, when we're worried about class unloading
|
static ClassResolver |
weakCachingResolver(java.lang.ClassLoader classLoader)
已过时。
non-aggressive 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