Class ClassResolvers
java.lang.Object
org.jboss.netty.handler.codec.serialization.ClassResolvers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassResolver
cacheDisabled
(ClassLoader classLoader) cache disabled(package private) static ClassLoader
defaultClassLoader
(ClassLoader classLoader) static ClassResolver
softCachingConcurrentResolver
(ClassLoader classLoader) agressive concurrent cache good for shared cache, when we're not worried about class unloadingstatic ClassResolver
softCachingResolver
(ClassLoader classLoader) agressive non-concurrent cache good for non-shared cache, when we're not worried about class unloadingstatic ClassResolver
weakCachingConcurrentResolver
(ClassLoader classLoader) non-agressive concurrent cache good for shared cache, when we're worried about class unloadingstatic ClassResolver
weakCachingResolver
(ClassLoader classLoader) non-agressive non-concurrent cache good for non-shared default cache
-
Constructor Details
-
ClassResolvers
private ClassResolvers()
-
-
Method Details
-
cacheDisabled
cache disabled- Parameters:
classLoader
- - specific classLoader to use, or null if you want to revert to default- Returns:
- new instance of class resolver
-
weakCachingResolver
non-agressive 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
agressive 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
non-agressive 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
agressive 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
-