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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassResolvercacheDisabled(ClassLoader classLoader) Deprecated.cache disabledstatic ClassResolversoftCachingConcurrentResolver(ClassLoader classLoader) Deprecated.aggressive concurrent cache good for shared cache, when we're not worried about class unloadingstatic ClassResolversoftCachingResolver(ClassLoader classLoader) Deprecated.aggressive non-concurrent cache good for non-shared cache, when we're not worried about class unloadingstatic ClassResolverweakCachingConcurrentResolver(ClassLoader classLoader) Deprecated.non-aggressive concurrent cache good for shared cache, when we're worried about class unloadingstatic ClassResolverweakCachingResolver(ClassLoader classLoader) Deprecated.non-aggressive non-concurrent cache good for non-shared default cache
-
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
-