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 liabilityFactory methods for creatingClassResolver
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
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ClassResolver
cacheDisabled(java.lang.ClassLoader classLoader)
Deprecated.cache disabledstatic ClassResolver
softCachingConcurrentResolver(java.lang.ClassLoader classLoader)
Deprecated.aggressive concurrent cache good for shared cache, when we're not worried about class unloadingstatic ClassResolver
softCachingResolver(java.lang.ClassLoader classLoader)
Deprecated.aggressive non-concurrent cache good for non-shared cache, when we're not worried about class unloadingstatic ClassResolver
weakCachingConcurrentResolver(java.lang.ClassLoader classLoader)
Deprecated.non-aggressive concurrent cache good for shared cache, when we're worried about class unloadingstatic ClassResolver
weakCachingResolver(java.lang.ClassLoader classLoader)
Deprecated.non-aggressive non-concurrent cache good for non-shared default cache
-
-
-
Method Detail
-
cacheDisabled
public static ClassResolver cacheDisabled(java.lang.ClassLoader classLoader)
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
public static ClassResolver weakCachingResolver(java.lang.ClassLoader classLoader)
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
public static ClassResolver softCachingResolver(java.lang.ClassLoader classLoader)
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
public static ClassResolver weakCachingConcurrentResolver(java.lang.ClassLoader classLoader)
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
public static ClassResolver softCachingConcurrentResolver(java.lang.ClassLoader classLoader)
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
-
-