Class BroadleafScopedMissingInstantiatorHandler
java.lang.Object
com.fasterxml.jackson.databind.deser.DeserializationProblemHandler
com.broadleafcommerce.common.extension.mapping.BroadleafScopedMissingInstantiatorHandler
@Deprecated(since="Common Extension 2.0.7",
forRemoval=true)
public class BroadleafScopedMissingInstantiatorHandler
extends com.fasterxml.jackson.databind.deser.DeserializationProblemHandler
Deprecated, for removal: This API element is subject to removal in a future version.
since Common Extension 2.0.7, as the impacted classes should be updated to adhere the
stricter constructor detection as soon as possible
Broadleaf-specific implementation of
MissingInstantiatorHandler, to ensure that the
MissingInstantiatorHandler logic is only applied to package paths
configured within BroadleafJacksonDeserializationProblemHandlerProperties.- Since:
- Common Extension 2.0.7
- Author:
- Sunny Yu
-
Field Summary
Fields inherited from class com.fasterxml.jackson.databind.deser.DeserializationProblemHandler
NOT_HANDLED -
Constructor Summary
ConstructorsConstructorDescriptionBroadleafScopedMissingInstantiatorHandler(BroadleafJacksonDeserializationProblemHandlerProperties broadleafJacksonScopeProperties) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionhandleMissingInstantiator(com.fasterxml.jackson.databind.DeserializationContext ctxt, Class<?> instClass, com.fasterxml.jackson.databind.deser.ValueInstantiator valueInsta, com.fasterxml.jackson.core.JsonParser p, String msg) Deprecated, for removal: This API element is subject to removal in a future version.Delegates toMissingInstantiatorHandleronly if the given class is in scope based on the configuration inBroadleafJacksonDeserializationProblemHandlerProperties.Methods inherited from class com.fasterxml.jackson.databind.deser.DeserializationProblemHandler
handleInstantiationProblem, handleMissingInstantiator, handleMissingTypeId, handleUnexpectedToken, handleUnexpectedToken, handleUnknownProperty, handleUnknownTypeId, handleWeirdKey, handleWeirdNativeValue, handleWeirdNumberValue, handleWeirdStringValue
-
Constructor Details
-
BroadleafScopedMissingInstantiatorHandler
public BroadleafScopedMissingInstantiatorHandler(BroadleafJacksonDeserializationProblemHandlerProperties broadleafJacksonScopeProperties) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
handleMissingInstantiator
public Object handleMissingInstantiator(com.fasterxml.jackson.databind.DeserializationContext ctxt, Class<?> instClass, com.fasterxml.jackson.databind.deser.ValueInstantiator valueInsta, com.fasterxml.jackson.core.JsonParser p, String msg) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.Delegates toMissingInstantiatorHandleronly if the given class is in scope based on the configuration inBroadleafJacksonDeserializationProblemHandlerProperties. If it's not in scope,DeserializationProblemHandler.NOT_HANDLEDis returned to let standard jackson errors to take over for 3rd party framework classes (e.g. Spring framework, java.lang, etc.)- Overrides:
handleMissingInstantiatorin classcom.fasterxml.jackson.databind.deser.DeserializationProblemHandler- Throws:
IOException
-