Class ClassResolvers
java.lang.Object
io.netty.handler.codec.serialization.ClassResolvers
@Deprecated
public final class ClassResolvers
extends java.lang.Object
Deprecated.
This class has been deprecated with no replacement,
because serialization can be a security liability
Factory methods for creating
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassResolvercacheDisabled(java.lang.ClassLoader classLoader) Deprecated.cache disabled(package private) static java.lang.ClassLoaderdefaultClassLoader(java.lang.ClassLoader classLoader) Deprecated.static ClassResolversoftCachingConcurrentResolver(java.lang.ClassLoader classLoader) Deprecated.aggressive concurrent cache good for shared cache, when we're not worried about class unloadingstatic ClassResolversoftCachingResolver(java.lang.ClassLoader classLoader) Deprecated.aggressive non-concurrent cache good for non-shared cache, when we're not worried about class unloadingstatic ClassResolverweakCachingConcurrentResolver(java.lang.ClassLoader classLoader) Deprecated.non-aggressive concurrent cache good for shared cache, when we're worried about class unloadingstatic ClassResolverweakCachingResolver(java.lang.ClassLoader classLoader) Deprecated.non-aggressive non-concurrent cache good for non-shared default cacheMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ClassResolvers
private ClassResolvers()Deprecated.
-
-
Method Details
-
cacheDisabled
Deprecated.cache disabled- Parameters:
classLoader- - specific classLoader to use, or null if you want to revert to default- Returns:
- new instance of class resolver
-
weakCachingResolver
Deprecated.non-aggressive non-concurrent cache good for non-shared default cache- Parameters:
classLoader- - specific classLoader to use, or null if you want to revert to default- Returns:
- new instance of class resolver
-
softCachingResolver
Deprecated.aggressive non-concurrent cache good for non-shared cache, when we're not worried about class unloading- Parameters:
classLoader- - specific classLoader to use, or null if you want to revert to default- Returns:
- new instance of class resolver
-
weakCachingConcurrentResolver
Deprecated.non-aggressive concurrent cache good for shared cache, when we're worried about class unloading- Parameters:
classLoader- - specific classLoader to use, or null if you want to revert to default- Returns:
- new instance of class resolver
-
softCachingConcurrentResolver
Deprecated.aggressive concurrent cache good for shared cache, when we're not worried about class unloading- Parameters:
classLoader- - specific classLoader to use, or null if you want to revert to default- Returns:
- new instance of class resolver
-
defaultClassLoader
static java.lang.ClassLoader defaultClassLoader(java.lang.ClassLoader classLoader) Deprecated.
-