Module io.helidon.common.mapper
Package io.helidon.common.mapper
Class MappersConfig.BuilderBase.MappersConfigImpl
java.lang.Object
io.helidon.common.mapper.MappersConfig.BuilderBase.MappersConfigImpl
- All Implemented Interfaces:
Prototype.Api
,Prototype.Factory<Mappers>
,MappersConfig
,Supplier<Mappers>
- Enclosing class:
MappersConfig.BuilderBase<BUILDER extends MappersConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends MappersConfig>
protected static class MappersConfig.BuilderBase.MappersConfigImpl
extends Object
implements MappersConfig, Supplier<Mappers>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.common.mapper.MappersConfig
MappersConfig.Builder, MappersConfig.BuilderBase<BUILDER extends MappersConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends MappersConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MappersConfigImpl
(MappersConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create a new instance of the runtime type from this config object.boolean
get()
int
hashCode()
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.toString()
boolean
Whether to use built-in mappers.
-
Constructor Details
-
MappersConfigImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
build
Description copied from interface:Prototype.Factory
Create a new instance of the runtime type from this config object.- Specified by:
build
in interfacePrototype.Factory<Mappers>
- Returns:
- new configured runtime instance
-
get
-
mapperProviders
Description copied from interface:MappersConfig
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
.- Specified by:
mapperProviders
in interfaceMappersConfig
- Returns:
- a list of configured mapper providers
-
mappers
Description copied from interface:MappersConfig
Mappers discovered throughServiceRegistry
, or explicitly created that implement bothMapper.sourceType()
andMapper.targetType()
methods.Mappers are ordered by
Weight
together withMappersConfig.mapperProviders()
to create a single list.- Specified by:
mappers
in interfaceMappersConfig
- Returns:
- list of mappers
-
useBuiltInMappers
public boolean useBuiltInMappers()Description copied from interface:MappersConfig
Whether to use built-in mappers. Defaults totrue
.- Specified by:
useBuiltInMappers
in interfaceMappersConfig
- Returns:
- whether to use built in mappers (such as String to Integer)
-
toString
-
equals
-
hashCode
public int hashCode()
-