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
ConstructorsModifierConstructorDescriptionprotectedMappersConfigImpl(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.booleanget()inthashCode()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()booleanWhether 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.FactoryCreate a new instance of the runtime type from this config object.- Specified by:
buildin interfacePrototype.Factory<Mappers>- Returns:
- new configured runtime instance
-
get
-
mapperProviders
Description copied from interface:MappersConfigMapper providers allow for introduction of new mappers into the system. A mapper provider can be exposed either as aServiceRegistryservice, or aServiceLoader, but never both.Mapper providers are ordered by their
Weight.- Specified by:
mapperProvidersin interfaceMappersConfig- Returns:
- a list of configured mapper providers
-
mappers
Description copied from interface:MappersConfigMappers discovered throughServiceRegistry, or explicitly created that implement bothMapper.sourceType()andMapper.targetType()methods.Mappers are ordered by
Weighttogether withMappersConfig.mapperProviders()to create a single list.- Specified by:
mappersin interfaceMappersConfig- Returns:
- list of mappers
-
useBuiltInMappers
public boolean useBuiltInMappers()Description copied from interface:MappersConfigWhether to use built-in mappers. Defaults totrue.- Specified by:
useBuiltInMappersin interfaceMappersConfig- Returns:
- whether to use built in mappers (such as String to Integer)
-
toString
-
equals
-
hashCode
public int hashCode()
-