- All Superinterfaces:
Prototype.Api
,Prototype.Factory<GsonSupport>
- All Known Implementing Classes:
GsonSupportConfig.BuilderBase.GsonSupportConfigImpl
Configuration of the
GsonSupport
.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Fluent API builder forGsonSupport
.static class
GsonSupportConfig.BuilderBase<BUILDER extends GsonSupportConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends GsonSupportConfig> Fluent API builder base forGsonSupport
. -
Method Summary
Modifier and TypeMethodDescriptionstatic GsonSupportConfig.Builder
builder()
Create a new fluent API builder to customize configuration.static GsonSupportConfig.Builder
builder
(GsonSupportConfig instance) Create a new fluent API builder from an existing instance.static GsonSupportConfig
create()
Create a new instance with default values.static GsonSupportConfig
Deprecated.static GsonSupportConfig
Create a new instance from configuration.com.google.gson.Gson
gson()
Gson
instance.name()
Name of the support.Gson configuration properties.Methods inherited from interface io.helidon.builder.api.Prototype.Factory
build
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
name
String name()Name of the support. Default value isgson
.- Returns:
- name of the support
-
gson
com.google.gson.Gson gson()Gson
instance.- Returns:
- gson instance
-
properties
Gson configuration properties. Properties are being ignored if specificGson
is set. Onlyboolean
configuration values are supported.- Returns:
- gson config properties
-
create(io.helidon.config.Config)