Class AfterburnerModule
java.lang.Object
com.fasterxml.jackson.databind.Module
com.fasterxml.jackson.module.afterburner.AfterburnerModule
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned
,Serializable
public class AfterburnerModule
extends com.fasterxml.jackson.databind.Module
implements Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.Module
com.fasterxml.jackson.databind.Module.SetupContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Flag to indicate whether we should use an optimized sub-class ofBeanDeserializer
or not.protected boolean
Flag to indicate whether we will try to load generated classes using same class loader as one that loaded class being accessed or not.private static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setupModule
(com.fasterxml.jackson.databind.Module.SetupContext context) setUseOptimizedBeanDeserializer
(boolean state) setUseValueClassLoader
(boolean state) Flag to indicate whether we will try to load generated classes using same class loader as one that loaded class being accessed or not.com.fasterxml.jackson.core.Version
version()
Methods inherited from class com.fasterxml.jackson.databind.Module
getDependencies, getTypeId
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
_cfgUseValueClassLoader
protected boolean _cfgUseValueClassLoaderFlag to indicate whether we will try to load generated classes using same class loader as one that loaded class being accessed or not. If not, we will use class loader that loaded this module. Benefit of using value class loader is that 'protected' and 'package access' properties can be accessed; otherwise only 'public' properties can be accessed.By default this feature is enabled.
-
_cfgUseOptimizedBeanDeserializer
protected boolean _cfgUseOptimizedBeanDeserializerFlag to indicate whether we should use an optimized sub-class ofBeanDeserializer
or not. Use of optimized version should further improve performance, but it can be disabled in case it causes issues.By default this feature is enabled.
-
-
Constructor Details
-
AfterburnerModule
public AfterburnerModule()
-
-
Method Details
-
setupModule
public void setupModule(com.fasterxml.jackson.databind.Module.SetupContext context) - Specified by:
setupModule
in classcom.fasterxml.jackson.databind.Module
-
getModuleName
- Specified by:
getModuleName
in classcom.fasterxml.jackson.databind.Module
-
version
public com.fasterxml.jackson.core.Version version()- Specified by:
version
in interfacecom.fasterxml.jackson.core.Versioned
- Specified by:
version
in classcom.fasterxml.jackson.databind.Module
-
setUseValueClassLoader
Flag to indicate whether we will try to load generated classes using same class loader as one that loaded class being accessed or not. If not, we will use class loader that loaded this module. Benefit of using value class loader is that 'protected' and 'package access' properties can be accessed; otherwise only 'public' properties can be accessed.By default this feature is enabled.
-
setUseOptimizedBeanDeserializer
-