Class ClassResolvers
java.lang.Object
io.netty.handler.codec.serialization.ClassResolvers
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 ClassResolver
cacheDisabled
(ClassLoader classLoader) Deprecated.cache disabled(package private) static ClassLoader
defaultClassLoader
(ClassLoader classLoader) Deprecated.static ClassResolver
softCachingConcurrentResolver
(ClassLoader classLoader) Deprecated.aggressive concurrent cache good for shared cache, when we're not worried about class unloadingstatic ClassResolver
softCachingResolver
(ClassLoader classLoader) Deprecated.aggressive non-concurrent cache good for non-shared cache, when we're not worried about class unloadingstatic ClassResolver
weakCachingConcurrentResolver
(ClassLoader classLoader) Deprecated.non-aggressive concurrent cache good for shared cache, when we're worried about class unloadingstatic ClassResolver
weakCachingResolver
(ClassLoader classLoader) Deprecated.non-aggressive non-concurrent cache good for non-shared default cache
-
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
Deprecated.
-