@Deprecated public final class ClassResolvers extends 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.
Modifier and Type | Method and Description |
---|---|
static ClassResolver |
cacheDisabled(ClassLoader classLoader)
Deprecated.
cache disabled
|
static ClassResolver |
softCachingConcurrentResolver(ClassLoader classLoader)
Deprecated.
aggressive concurrent cache
good for shared cache, when we're not worried about class unloading
|
static ClassResolver |
softCachingResolver(ClassLoader classLoader)
Deprecated.
aggressive non-concurrent cache
good for non-shared cache, when we're not worried about class unloading
|
static ClassResolver |
weakCachingConcurrentResolver(ClassLoader classLoader)
Deprecated.
non-aggressive concurrent cache
good for shared cache, when we're worried about class unloading
|
static ClassResolver |
weakCachingResolver(ClassLoader classLoader)
Deprecated.
non-aggressive non-concurrent cache
good for non-shared default cache
|
public static ClassResolver cacheDisabled(ClassLoader classLoader)
classLoader
- - specific classLoader to use, or null if you want to revert to defaultpublic static ClassResolver weakCachingResolver(ClassLoader classLoader)
classLoader
- - specific classLoader to use, or null if you want to revert to defaultpublic static ClassResolver softCachingResolver(ClassLoader classLoader)
classLoader
- - specific classLoader to use, or null if you want to revert to defaultpublic static ClassResolver weakCachingConcurrentResolver(ClassLoader classLoader)
classLoader
- - specific classLoader to use, or null if you want to revert to defaultpublic static ClassResolver softCachingConcurrentResolver(ClassLoader classLoader)
classLoader
- - specific classLoader to use, or null if you want to revert to defaultCopyright © 2008–2024 The Netty Project. All rights reserved.