Class EnumTypeAdapterFactory.AnonymousAllowUnregisteredEnumTypeAdapterFactory
java.lang.Object
io.datarouter.gson.typeadapterfactory.EnumTypeAdapterFactory
io.datarouter.gson.typeadapterfactory.EnumTypeAdapterFactory.AnonymousAllowUnregisteredEnumTypeAdapterFactory
- All Implemented Interfaces:
com.google.gson.TypeAdapterFactory
- Enclosing class:
- EnumTypeAdapterFactory
public static class EnumTypeAdapterFactory.AnonymousAllowUnregisteredEnumTypeAdapterFactory
extends EnumTypeAdapterFactory
This can be used to intercept and log unregistered enums, however when multiple of these exist, the logs will
not differentiate between them. A more robust solution is to create specific ones with unique class names.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.datarouter.gson.typeadapterfactory.EnumTypeAdapterFactory
EnumTypeAdapterFactory.AnonymousAllowUnregisteredEnumTypeAdapterFactory, EnumTypeAdapterFactory.RejectAllEnumTypeAdapterFactory -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.datarouter.gson.typeadapterfactory.EnumTypeAdapterFactory
allowUnregistered, create, register, registerStringMappedEnumOptional, registerStringMappedEnumOptionalWithLogging, registerStringMappedEnumRequired, suppressUnregisteredLogging
-
Field Details
-
INSTANCE
public static final EnumTypeAdapterFactory.AnonymousAllowUnregisteredEnumTypeAdapterFactory INSTANCE
-
-
Constructor Details
-
AnonymousAllowUnregisteredEnumTypeAdapterFactory
public AnonymousAllowUnregisteredEnumTypeAdapterFactory()
-