Package org.eclipse.yasson.internal
Class JsonbContext
- java.lang.Object
-
- org.eclipse.yasson.internal.JsonbContext
-
public class JsonbContext extends Object
Jsonb context holding central components and configuration of jsonb runtime. Scoped to instance of Jsonb runtime. Thread bound.- Author:
- Roman Grigoriadi
-
-
Constructor Summary
Constructors Constructor Description JsonbContext(javax.json.bind.JsonbConfig jsonbConfig, javax.json.spi.JsonProvider jsonProvider)
Creates and initialize context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addProcessedObject(Object object)
boolean
genericComponentsPresent()
Flag for searching for generic serializers and adapters in runtime.AnnotationIntrospector
getAnnotationIntrospector()
Gets component for annotation parsing.JsonbComponentInstanceCreator
getComponentInstanceCreator()
Implementation creating instances of user components used by JSONB, such as adapters and strategies.ComponentMatcher
getComponentMatcher()
Component matcher for lookup of (de)serializers and adapters.javax.json.bind.JsonbConfig
getConfig()
GetsJsonbConfig
.JsonbConfigProperties
getConfigProperties()
javax.json.spi.JsonProvider
getJsonProvider()
Gets JSONP provider.MappingContext
getMappingContext()
Gets mapping context.void
registerGenericComponentFlag()
Set flag for searching for generic serializers and adapters in runtime.boolean
removeProcessedObject(Object object)
-
-
-
Method Detail
-
getConfig
public javax.json.bind.JsonbConfig getConfig()
GetsJsonbConfig
.- Returns:
- Configuration.
-
getMappingContext
public MappingContext getMappingContext()
Gets mapping context.- Returns:
- Mapping context.
-
getJsonProvider
public javax.json.spi.JsonProvider getJsonProvider()
Gets JSONP provider.- Returns:
- JSONP provider.
-
getComponentInstanceCreator
public JsonbComponentInstanceCreator getComponentInstanceCreator()
Implementation creating instances of user components used by JSONB, such as adapters and strategies.- Returns:
- Instance creator.
-
getComponentMatcher
public ComponentMatcher getComponentMatcher()
Component matcher for lookup of (de)serializers and adapters.- Returns:
- Component matcher.
-
getAnnotationIntrospector
public AnnotationIntrospector getAnnotationIntrospector()
Gets component for annotation parsing.- Returns:
- Annotation introspector.
-
genericComponentsPresent
public boolean genericComponentsPresent()
Flag for searching for generic serializers and adapters in runtime.- Returns:
- True if generic components are present.
-
registerGenericComponentFlag
public void registerGenericComponentFlag()
Set flag for searching for generic serializers and adapters in runtime.
-
getConfigProperties
public JsonbConfigProperties getConfigProperties()
-
addProcessedObject
public boolean addProcessedObject(Object object)
-
removeProcessedObject
public boolean removeProcessedObject(Object object)
-
-