Class 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 Detail

      • JsonbContext

        public JsonbContext​(javax.json.bind.JsonbConfig jsonbConfig,
                            javax.json.spi.JsonProvider jsonProvider)
        Creates and initialize context.
        Parameters:
        jsonbConfig - jsonb jsonbConfig not null
        jsonProvider - provider of JSONP
    • Method Detail

      • getConfig

        public javax.json.bind.JsonbConfig getConfig()
        Gets JsonbConfig.
        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.
      • getInstanceCreator

        public InstanceCreator getInstanceCreator()
        Returns component for creating instances of non-parsed types.
        Returns:
        InstanceCreator