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
    Modifier
    Constructor
    Description
    private
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    cacheDisabled(java.lang.ClassLoader classLoader)
    Deprecated.
    cache disabled
    (package private) static java.lang.ClassLoader
    defaultClassLoader(java.lang.ClassLoader classLoader)
    Deprecated.
     
    softCachingConcurrentResolver(java.lang.ClassLoader classLoader)
    Deprecated.
    aggressive concurrent cache good for shared cache, when we're not worried about class unloading
    softCachingResolver(java.lang.ClassLoader classLoader)
    Deprecated.
    aggressive non-concurrent cache good for non-shared cache, when we're not worried about class unloading
    weakCachingConcurrentResolver(java.lang.ClassLoader classLoader)
    Deprecated.
    non-aggressive concurrent cache good for shared cache, when we're worried about class unloading
    weakCachingResolver(java.lang.ClassLoader classLoader)
    Deprecated.
    non-aggressive non-concurrent cache good for non-shared default cache

    Methods 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

      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
    • defaultClassLoader

      static java.lang.ClassLoader defaultClassLoader(java.lang.ClassLoader classLoader)
      Deprecated.