Package org.apache.johnzon.jsonb
Class JohnzonBuilder
- java.lang.Object
-
- org.apache.johnzon.jsonb.JohnzonBuilder
-
- All Implemented Interfaces:
jakarta.json.bind.JsonbBuilder
public class JohnzonBuilder extends Object implements jakarta.json.bind.JsonbBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
JohnzonBuilder.Lazy<T>
-
Field Summary
Fields Modifier and Type Field Description private Object
beanManager
private MapperBuilder
builder
private CDIs
cdiIntegration
private jakarta.json.bind.JsonbConfig
config
private jakarta.json.spi.JsonProvider
jsonp
private static Object
NO_BM
-
Constructor Summary
Constructors Constructor Description JohnzonBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.json.bind.Jsonb
build()
private Supplier<jakarta.json.JsonBuilderFactory>
createJsonBuilderFactory()
private Supplier<jakarta.json.stream.JsonParserFactory>
createJsonParserFactory()
private jakarta.json.bind.Jsonb
doCreateJsonb(boolean skipCdi, boolean ijson, Mapper mapper)
private JohnzonAdapterFactory
findFactory(boolean skipCdi)
private Map<String,?>
generatorConfig()
private Object
getBeanManager()
private <T extends Enum<T>>
MapperConfig.CustomEnumConverter<T>newEnumConverter(Class<T> enumType)
private Map<String,?>
readerConfig()
private Boolean
shouldSkipCdi()
private ClassLoader
tccl()
private AccessMode
toAccessMode(Object s)
private Boolean
toBool(Object v)
private Integer
toInt(Object v)
jakarta.json.bind.JsonbBuilder
withConfig(jakarta.json.bind.JsonbConfig config)
jakarta.json.bind.JsonbBuilder
withProvider(jakarta.json.spi.JsonProvider jsonpProvider)
-
-
-
Field Detail
-
NO_BM
private static final Object NO_BM
-
builder
private final MapperBuilder builder
-
jsonp
private jakarta.json.spi.JsonProvider jsonp
-
config
private jakarta.json.bind.JsonbConfig config
-
beanManager
private Object beanManager
-
cdiIntegration
private CDIs cdiIntegration
-
-
Method Detail
-
withConfig
public jakarta.json.bind.JsonbBuilder withConfig(jakarta.json.bind.JsonbConfig config)
- Specified by:
withConfig
in interfacejakarta.json.bind.JsonbBuilder
-
withProvider
public jakarta.json.bind.JsonbBuilder withProvider(jakarta.json.spi.JsonProvider jsonpProvider)
- Specified by:
withProvider
in interfacejakarta.json.bind.JsonbBuilder
-
build
public jakarta.json.bind.Jsonb build()
- Specified by:
build
in interfacejakarta.json.bind.JsonbBuilder
-
newEnumConverter
private <T extends Enum<T>> MapperConfig.CustomEnumConverter<T> newEnumConverter(Class<T> enumType)
-
doCreateJsonb
private jakarta.json.bind.Jsonb doCreateJsonb(boolean skipCdi, boolean ijson, Mapper mapper)
-
toAccessMode
private AccessMode toAccessMode(Object s)
-
createJsonParserFactory
private Supplier<jakarta.json.stream.JsonParserFactory> createJsonParserFactory()
-
createJsonBuilderFactory
private Supplier<jakarta.json.JsonBuilderFactory> createJsonBuilderFactory()
-
getBeanManager
private Object getBeanManager()
-
findFactory
private JohnzonAdapterFactory findFactory(boolean skipCdi)
-
shouldSkipCdi
private Boolean shouldSkipCdi()
-
tccl
private ClassLoader tccl()
-
-