- java.lang.Object
-
- com.pervasive.datarush.json.SimpleTypeResolutionProvider
-
- All Implemented Interfaces:
TypeResolutionProvider
- Direct Known Subclasses:
AnalyticsTypeResolutionProvider
,AvroTypeResolutionProvider
,CoreTypeResolutionProvider
,HadoopTypeResolutionProvider
,HiveTypeResolutionProvider
,MatchingTypeResolutionProvider
,ScriptTypeResolutionProvider
public abstract class SimpleTypeResolutionProvider extends Object implements TypeResolutionProvider
Convenient base class for implementations ofTypeResolutionProvider
. Subclasses should define a public constructor that registers classes by callingregister(Class)
.
-
-
Constructor Summary
Constructors Constructor Description SimpleTypeResolutionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
register(Class<?> clazz)
To be called by subclasses to register a classList<Class<?>>
registeredClasses()
Returns a list of classes registered with this providercom.fasterxml.jackson.databind.Module
registeredExtensions()
Returns a module defining custom serializers and deserializers registered with this provided.
-
-
-
Method Detail
-
register
protected final void register(Class<?> clazz)
To be called by subclasses to register a class- Parameters:
clazz
- the class to register
-
registeredClasses
public final List<Class<?>> registeredClasses()
Description copied from interface:TypeResolutionProvider
Returns a list of classes registered with this provider- Specified by:
registeredClasses
in interfaceTypeResolutionProvider
- Returns:
- a list of classes registered with this provider
-
registeredExtensions
public com.fasterxml.jackson.databind.Module registeredExtensions()
Description copied from interface:TypeResolutionProvider
Returns a module defining custom serializers and deserializers registered with this provided.null
may be returned, indicating none are registered.- Specified by:
registeredExtensions
in interfaceTypeResolutionProvider
- Returns:
- a custom serialization module for this provider
-
-