Package org.eclipse.yasson.internal
Class JsonbContext
java.lang.Object
org.eclipse.yasson.internal.JsonbContext
Jsonb context holding central components and configuration of jsonb runtime. Scoped to instance of Jsonb runtime.
-
Constructor Summary
ConstructorsConstructorDescriptionJsonbContext(javax.json.bind.JsonbConfig jsonbConfig, javax.json.spi.JsonProvider jsonProvider) Creates and initialize context. -
Method Summary
Modifier and TypeMethodDescriptionGets component for annotation parsing.Implementation creating instances of user components used by JSONB, such as adapters and strategies.Component matcher for lookup of (de)serializers and adapters.javax.json.bind.JsonbConfigGetsJsonbConfig.Returns component for creating instances of non-parsed types.javax.json.spi.JsonProviderGets JSONP provider.Gets mapping context.
-
Constructor Details
-
JsonbContext
public JsonbContext(javax.json.bind.JsonbConfig jsonbConfig, javax.json.spi.JsonProvider jsonProvider) Creates and initialize context.- Parameters:
jsonbConfig- jsonb jsonbConfig not nulljsonProvider- provider of JSONP
-
-
Method Details
-
getConfig
public javax.json.bind.JsonbConfig getConfig()GetsJsonbConfig.- Returns:
- Configuration.
-
getMappingContext
Gets mapping context.- Returns:
- Mapping context.
-
getJsonProvider
public javax.json.spi.JsonProvider getJsonProvider()Gets JSONP provider.- Returns:
- JSONP provider.
-
getComponentInstanceCreator
Implementation creating instances of user components used by JSONB, such as adapters and strategies.- Returns:
- Instance creator.
-
getComponentMatcher
Component matcher for lookup of (de)serializers and adapters.- Returns:
- Component matcher.
-
getAnnotationIntrospector
Gets component for annotation parsing.- Returns:
- Annotation introspector.
-
getConfigProperties
-
getInstanceCreator
Returns component for creating instances of non-parsed types.- Returns:
- InstanceCreator
-