- All Superinterfaces:
Prototype.Api
,Prototype.Factory<Mappers>
- All Known Implementing Classes:
MappersConfig.BuilderBase.MappersConfigImpl
Mappers configuration.
All mappers registered within this type (through its builder) are ordered by their weight, regardless of order of configuration on builder.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Fluent API builder forMappers
.static class
MappersConfig.BuilderBase<BUILDER extends MappersConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends MappersConfig> Fluent API builder base forMappers
. -
Method Summary
Modifier and TypeMethodDescriptionstatic MappersConfig.Builder
builder()
Create a new fluent API builder to customize configuration.static MappersConfig.Builder
builder
(MappersConfig instance) Create a new fluent API builder from an existing instance.static MappersConfig
create()
Create a new instance with default values.Mapper providers allow for introduction of new mappers into the system.mappers()
Mappers discovered throughServiceRegistry
, or explicitly created that implement bothMapper.sourceType()
andMapper.targetType()
methods.boolean
Whether to use built-in mappers.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 with default values.- Returns:
- a new instance
-
mapperProviders
List<MapperProvider> mapperProviders()Mapper providers allow for introduction of new mappers into the system. A mapper provider can be exposed either as aServiceRegistry
service, or aServiceLoader
, but never both.Mapper providers are ordered by their
Weight
.- Returns:
- a list of configured mapper providers
-
mappers
Mappers discovered throughServiceRegistry
, or explicitly created that implement bothMapper.sourceType()
andMapper.targetType()
methods.Mappers are ordered by
Weight
together withMappersConfigBlueprint.mapperProviders()
to create a single list.- Returns:
- list of mappers
-
useBuiltInMappers
boolean useBuiltInMappers()Whether to use built-in mappers. Defaults totrue
.- Returns:
- whether to use built in mappers (such as String to Integer)
-