Package org.eclipse.yasson.internal
Class JsonbContext
- java.lang.Object
-
- org.eclipse.yasson.internal.JsonbContext
-
public class JsonbContext extends java.lang.Object
Jsonb context holding central components and configuration of jsonb runtime. Scoped to instance of Jsonb runtime.
-
-
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 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()
InstanceCreator
getInstanceCreator()
Returns component for creating instances of non-parsed types.javax.json.spi.JsonProvider
getJsonProvider()
Gets JSONP provider.MappingContext
getMappingContext()
Gets mapping context.
-
-
-
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.
-
getConfigProperties
public JsonbConfigProperties getConfigProperties()
-
getInstanceCreator
public InstanceCreator getInstanceCreator()
Returns component for creating instances of non-parsed types.- Returns:
- InstanceCreator
-
-