Top Description Constructors Methods
io.netty.handler.codec.serialization

public final Class ClassResolvers

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
io.netty.util.internal.PlatformDependent, java.lang.ref.Reference, java.util.HashMap

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

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ClassResolver

Returns:

new instance of class resolver
cacheDisabled
(ClassLoader
- specific classLoader to use, or null if you want to revert to default
classLoader
)

Deprecated as a consequence of ClassResolver being deprecated.
cache disabled
pack-priv static ClassLoader
public static ClassResolver

Returns:

new instance of class resolver
softCachingConcurrentResolver
(ClassLoader
- specific classLoader to use, or null if you want to revert to default
classLoader
)

Deprecated as a consequence of ClassResolver being deprecated.
aggressive concurrent cache good for shared cache, when we're not worried about class unloading
public static ClassResolver

Returns:

new instance of class resolver
softCachingResolver
(ClassLoader
- specific classLoader to use, or null if you want to revert to default
classLoader
)

Deprecated as a consequence of ClassResolver being deprecated.
aggressive non-concurrent cache good for non-shared cache, when we're not worried about class unloading
public static ClassResolver

Returns:

new instance of class resolver
weakCachingConcurrentResolver
(ClassLoader
- specific classLoader to use, or null if you want to revert to default
classLoader
)

Deprecated as a consequence of ClassResolver being deprecated.
non-aggressive concurrent cache good for shared cache, when we're worried about class unloading
public static ClassResolver

Returns:

new instance of class resolver
weakCachingResolver
(ClassLoader
- specific classLoader to use, or null if you want to revert to default
classLoader
)

Deprecated as a consequence of ClassResolver being deprecated.
non-aggressive non-concurrent cache good for non-shared default cache
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ClassResolversback to summary
private ClassResolvers()

Method Detail

cacheDisabledback to summary
public static ClassResolver cacheDisabled(ClassLoader classLoader)

Deprecated

as a consequence of ClassResolver being deprecated. See corresponding docs for further information.

cache disabled

Parameters
classLoader:ClassLoader

- specific classLoader to use, or null if you want to revert to default

Returns:ClassResolver

new instance of class resolver

defaultClassLoaderback to summary
pack-priv static ClassLoader defaultClassLoader(ClassLoader classLoader)
softCachingConcurrentResolverback to summary
public static ClassResolver softCachingConcurrentResolver(ClassLoader classLoader)

Deprecated

as a consequence of ClassResolver being deprecated. See corresponding docs for further information.

aggressive concurrent cache good for shared cache, when we're not worried about class unloading

Parameters
classLoader:ClassLoader

- specific classLoader to use, or null if you want to revert to default

Returns:ClassResolver

new instance of class resolver

softCachingResolverback to summary
public static ClassResolver softCachingResolver(ClassLoader classLoader)

Deprecated

as a consequence of ClassResolver being deprecated. See corresponding docs for further information.

aggressive non-concurrent cache good for non-shared cache, when we're not worried about class unloading

Parameters
classLoader:ClassLoader

- specific classLoader to use, or null if you want to revert to default

Returns:ClassResolver

new instance of class resolver

weakCachingConcurrentResolverback to summary
public static ClassResolver weakCachingConcurrentResolver(ClassLoader classLoader)

Deprecated

as a consequence of ClassResolver being deprecated. See corresponding docs for further information.

non-aggressive concurrent cache good for shared cache, when we're worried about class unloading

Parameters
classLoader:ClassLoader

- specific classLoader to use, or null if you want to revert to default

Returns:ClassResolver

new instance of class resolver

weakCachingResolverback to summary
public static ClassResolver weakCachingResolver(ClassLoader classLoader)

Deprecated

as a consequence of ClassResolver being deprecated. See corresponding docs for further information.

non-aggressive non-concurrent cache good for non-shared default cache

Parameters
classLoader:ClassLoader

- specific classLoader to use, or null if you want to revert to default

Returns:ClassResolver

new instance of class resolver