Uses of Class
io.helidon.common.GenericType
Packages that use GenericType
Package
Description
Common utilities for Helidon projects.
Support for mapping of types.
SPI to provide
mappers
for MapperManager
.Provides interfaces and classes for loading and working with immutable, tree-structured
configuration data.
Configuration SPI that defines the behavior developers can implement to extend the config system.
Reactive Database API for Helidon.
Helidon DB implementation for JDBC.
Helidon DB integration for reactive mongoDB.
Service provider interface for Helidon DB.
Common classes for processing content with a specific
MediaType
.Helidon Media MultiPart.
A reactive client for rest calls.
-
Uses of GenericType in io.helidon.common
Methods in io.helidon.common that return GenericTypeModifier and TypeMethodDescriptionstatic <N> GenericType<N>
Constructs a new generic type instance representing the given class.static <N> GenericType<N>
Constructs a new generic type, using the provided generic type information and deriving the class.static <N> GenericType<N>
GenericType.create
(N object) Constructs a new generic type instance representing the class of the given object. -
Uses of GenericType in io.helidon.common.mapper
Methods in io.helidon.common.mapper with parameters of type GenericTypeModifier and TypeMethodDescription<S,
T> MapperManager.Builder MapperManager.Builder.addMapper
(Mapper<S, T> mapper, GenericType<S> sourceType, GenericType<T> targetType) Add a mapper to the list of mapper.<S,
T> MapperManager.Builder MapperManager.Builder.addMapper
(Mapper<S, T> mapper, GenericType<S> sourceType, GenericType<T> targetType, int priority) Add a mapper to the list of mapper with custom priority.<SOURCE,
TARGET>
TARGETMapperManager.map
(SOURCE source, GenericType<SOURCE> sourceType, GenericType<TARGET> targetType) Map from source to target.Constructors in io.helidon.common.mapper with parameters of type GenericTypeModifierConstructorDescriptionMapperException
(GenericType<?> source, GenericType<?> target, String detail) Failed with no underlying exception.MapperException
(GenericType<?> source, GenericType<?> target, String detail, Throwable cause) Failed with an underlying exception. -
Uses of GenericType in io.helidon.common.mapper.spi
Methods in io.helidon.common.mapper.spi with parameters of type GenericTypeModifier and TypeMethodDescriptionMapperProvider.mapper
(GenericType<SOURCE> sourceType, GenericType<TARGET> targetType) Find a mapper that is capable of mapping from source to target types. -
Uses of GenericType in io.helidon.config
Fields in io.helidon.config declared as GenericTypeModifier and TypeFieldDescriptionstatic final GenericType<Config>
Config.GENERIC_TYPE
Generic type of configuration.Methods in io.helidon.config with parameters of type GenericTypeModifier and TypeMethodDescription<T> Config.Builder
Config.Builder.addMapper
(GenericType<T> type, Function<Config, T> mapper) Register a mapping function for specifiedGenericType
.<T> ConfigValue<T>
Config.as
(GenericType<T> genericType) Typed value as aConfigValue
for a generic type. -
Uses of GenericType in io.helidon.config.spi
Methods in io.helidon.config.spi that return types with arguments of type GenericTypeModifier and TypeMethodDescriptiondefault Map<GenericType<?>,
BiFunction<Config, ConfigMapper, ?>> ConfigMapperProvider.genericTypeMappers()
Returns a map of mapper functions associated with appropriate target type (GenericType<?>
.Methods in io.helidon.config.spi with parameters of type GenericTypeModifier and TypeMethodDescription<T> T
ConfigMapper.map
(Config config, GenericType<T> type) Convert the specifiedConfig
node into the target type specified byGenericType
.<T> T
ConfigMapper.map
(String value, GenericType<T> type, String key) Converts the value to the target generic type.default <T> Optional<BiFunction<Config,
ConfigMapper, T>> ConfigMapperProvider.mapper
(GenericType<T> type) Mapper for a specific generic type. -
Uses of GenericType in io.helidon.dbclient
Fields in io.helidon.dbclient declared as GenericTypeModifier and TypeFieldDescriptionstatic final GenericType<DbRow>
DbMapperManager.TYPE_DB_ROW
Generic type for theDbRow
class.static final GenericType<List<?>>
DbMapperManager.TYPE_INDEXED_PARAMS
Generic type for theList
of indexed parameters.static final GenericType<Map<String,
?>> DbMapperManager.TYPE_NAMED_PARAMS
Generic type for theMap
of String to value pairs for named parameters.Methods in io.helidon.dbclient with parameters of type GenericTypeModifier and TypeMethodDescription<T> T
DbColumn.as
(GenericType<T> type) Value of this column as a generic type.<T> T
DbRow.as
(GenericType<T> type) Map this row to an object using aDbMapper
.<T> T
DbMapperManager.read
(DbRow row, GenericType<T> expectedType) Read database row into a typed value. -
Uses of GenericType in io.helidon.dbclient.jdbc
Methods in io.helidon.dbclient.jdbc with parameters of type GenericTypeModifier and TypeMethodDescription<TYPE> JdbcDbClientProviderBuilder
JdbcDbClientProviderBuilder.addMapper
(DbMapper<TYPE> dbMapper, GenericType<TYPE> mappedType) -
Uses of GenericType in io.helidon.dbclient.mongodb
Methods in io.helidon.dbclient.mongodb with parameters of type GenericTypeModifier and TypeMethodDescription<TYPE> MongoDbClientProviderBuilder
MongoDbClientProviderBuilder.addMapper
(DbMapper<TYPE> dbMapper, GenericType<TYPE> mappedType) <T> T
MongoDbColumn.as
(GenericType<T> type) -
Uses of GenericType in io.helidon.dbclient.spi
Methods in io.helidon.dbclient.spi with parameters of type GenericTypeModifier and TypeMethodDescription<TYPE> T
DbClientProviderBuilder.addMapper
(DbMapper<TYPE> dbMapper, GenericType<TYPE> mappedType) Add a custom mapper with generic types support.DbMapperProvider.mapper
(GenericType<T> type) Returns mapper for specific type supporting generic types as well. -
Uses of GenericType in io.helidon.media.common
Methods in io.helidon.media.common that return types with arguments of type GenericTypeModifier and TypeMethodDescriptionOptional<GenericType<?>>
MessageBodyContext.Event.entityType()
Get the type requested for conversion.Methods in io.helidon.media.common with parameters of type GenericTypeModifier and TypeMethodDescriptionMessageBodyOperator.accept
(GenericType<?> type, T context) Test if the operator can convert the given type.protected Flow.Publisher<DataChunk>
MessageBodyContext.applyFilters
(Flow.Publisher<DataChunk> publisher, GenericType<?> type) Apply the filters on the given input publisher to form a publisher chain.<T> Single<T>
MessageBodyReadableContent.as
(GenericType<T> type) Consumes and converts the content payload into a completion stage of the requested type.<T> Multi<T>
MessageBodyReadableContent.asStream
(GenericType<T> type) Consumes and converts the content payload into a stream of entities of the requested type.MessageBodyStreamWriter.marshall
(Flow.Publisher<T> publisher, GenericType<T> type) Create a marshalling function that can be used to marshall the publisher with a context.<T> Flow.Publisher<DataChunk>
MessageBodyWriterContext.marshall
(Single<T> content, GenericType<T> type) Convert a given input publisher into HTTP payload by selecting a writer that accepts the specified type and current context.<T> Flow.Publisher<DataChunk>
MessageBodyWriterContext.marshall
(Single<T> content, MessageBodyWriter<T> writer, GenericType<T> type) Convert a given input publisher into HTTP payload by selecting a writer with the specified class.<T> Flow.Publisher<DataChunk>
MessageBodyWriterContext.marshallStream
(Flow.Publisher<T> content, GenericType<T> type) Convert a given input publisher into HTTP payload by selecting a stream writer that accepts the specified type and current context.<T> Flow.Publisher<DataChunk>
MessageBodyWriterContext.marshallStream
(Flow.Publisher<T> content, MessageBodyStreamWriter<T> writer, GenericType<T> type) Convert a given input publisher into HTTP payload by selecting a stream writer with the specified class.MessageBodyReader.read
(Flow.Publisher<DataChunk> publisher, GenericType<U> type, MessageBodyReaderContext context) Convert a HTTP payload into a Single publisher of the given type.<U extends T>
Flow.Publisher<U>MessageBodyStreamReader.read
(Flow.Publisher<DataChunk> publisher, GenericType<U> type, MessageBodyReaderContext context) Convert the given HTTP payload into objects of the given type.MessageBodyOperator.PredicateResult.supports
(Class<?> expected, GenericType<?> actual) Whether handled class is supported.MessageBodyReader.unmarshall
(MessageBodyReadableContent content, GenericType<T> type) Unmarshall the given content using this reader.<T> Single<T>
MessageBodyReaderContext.unmarshall
(Flow.Publisher<DataChunk> payload, GenericType<T> type) Convert a given HTTP payload into a publisher by selecting a reader that accepts the specified type and current context.<T> Single<T>
MessageBodyReaderContext.unmarshall
(Flow.Publisher<DataChunk> payload, MessageBodyReader<T> reader, GenericType<T> type) Convert a given HTTP payload into a publisher by selecting a reader with the specified class.default Flow.Publisher<T>
MessageBodyStreamReader.unmarshall
(MessageBodyReadableContent content, GenericType<T> type) Unmarshall the given content using this reader.<T> Flow.Publisher<T>
MessageBodyReaderContext.unmarshallStream
(Flow.Publisher<DataChunk> payload, GenericType<T> type) Convert a given HTTP payload into a publisher by selecting a stream reader that accepts the specified type and current context.<T> Flow.Publisher<T>
MessageBodyReaderContext.unmarshallStream
(Flow.Publisher<DataChunk> payload, MessageBodyStreamReader<T> reader, GenericType<T> type) Convert a given HTTP payload into a publisher by selecting a stream reader with the payload class.MessageBodyStreamWriter.write
(Flow.Publisher<? extends T> publisher, GenericType<? extends T> type, MessageBodyWriterContext context) Generate HTTP payload from the given stream of objects.MessageBodyWriter.write
(Single<? extends T> single, GenericType<? extends T> type, MessageBodyWriterContext context) Generate HTTP payload from the objects of the given type. -
Uses of GenericType in io.helidon.media.multipart
Methods in io.helidon.media.multipart with parameters of type GenericTypeModifier and TypeMethodDescriptionBodyPartBodyStreamReader.accept
(GenericType<?> type, MessageBodyReaderContext context) BodyPartBodyStreamWriter.accept
(GenericType<?> type, MessageBodyWriterContext context) MultiPartBodyWriter.accept
(GenericType<?> type, MessageBodyWriterContext context) <U extends ReadableBodyPart>
Flow.Publisher<U>BodyPartBodyStreamReader.read
(Flow.Publisher<DataChunk> publisher, GenericType<U> type, MessageBodyReaderContext context) BodyPartBodyStreamWriter.write
(Flow.Publisher<? extends WriteableBodyPart> content, GenericType<? extends WriteableBodyPart> type, MessageBodyWriterContext context) MultiPartBodyWriter.write
(Single<? extends WriteableMultiPart> content, GenericType<? extends WriteableMultiPart> type, MessageBodyWriterContext context) -
Uses of GenericType in io.helidon.webclient
Methods in io.helidon.webclient with parameters of type GenericTypeModifier and TypeMethodDescription<T> Single<T>
WebClientRequestBuilder.request
(GenericType<T> responseType) Performs prepared request and transforms response to requested type.