Uses of Class
io.helidon.common.GenericType
-
Packages that use GenericType Package Description io.helidon.common Common utilities for Helidon projects.io.helidon.common.mapper Support for mapping of types.io.helidon.common.mapper.spi SPI to providemappers
forMapperManager
.io.helidon.config Provides interfaces and classes for loading and working with immutable, tree-structured configuration data.io.helidon.config.mp Helidon implementation of microprofile config.io.helidon.config.spi Configuration SPI that defines the behavior developers can implement to extend the config system.io.helidon.dbclient Reactive Database API for Helidon.io.helidon.dbclient.jdbc Helidon DB implementation for JDBC.io.helidon.dbclient.mongodb Helidon DB integration for reactive mongoDB.io.helidon.dbclient.spi Service provider interface for Helidon DB.io.helidon.media.common Common classes for processing content with a specificMediaType
.io.helidon.media.multipart Helidon Media MultiPart.io.helidon.webclient A reactive client for rest calls. -
-
Uses of GenericType in io.helidon.common
Methods in io.helidon.common that return GenericType Modifier and Type Method Description static <N> GenericType<N>
GenericType. create(Class<N> clazz)
Constructs a new generic type instance representing the given class.static <N> GenericType<N>
GenericType. create(Type genericType)
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 GenericType Modifier and Type Method Description <S,T>
MapperManager.BuilderMapperManager.Builder. addMapper(Mapper<S,T> mapper, GenericType<S> sourceType, GenericType<T> targetType)
Add a mapper to the list of mapper.<S,T>
MapperManager.BuilderMapperManager.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 GenericType Constructor Description MapperException(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 GenericType Modifier and Type Method Description default <SOURCE,TARGET>
Optional<Mapper<?,?>>MapperProvider. 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 GenericType Modifier and Type Field Description static GenericType<Config>
Config. GENERIC_TYPE
Generic type of configuration.Methods in io.helidon.config with parameters of type GenericType Modifier and Type Method Description <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.mp
Methods in io.helidon.config.mp with parameters of type GenericType Modifier and Type Method Description <T> ConfigValue<T>
MpConfigProviderResolver.ConfigDelegate. as(GenericType<T> genericType)
Deprecated. -
Uses of GenericType in io.helidon.config.spi
Methods in io.helidon.config.spi that return types with arguments of type GenericType Modifier and Type Method Description default 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 GenericType Modifier and Type Method Description <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 GenericType Modifier and Type Field Description static GenericType<DbRow>
DbMapperManager. TYPE_DB_ROW
Generic type for theDbRow
class.static GenericType<List<?>>
DbMapperManager. TYPE_INDEXED_PARAMS
Generic type for theList
of indexed parameters.static 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 GenericType Modifier and Type Method Description <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 GenericType Modifier and Type Method Description <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 GenericType Modifier and Type Method Description <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 GenericType Modifier and Type Method Description <TYPE> T
DbClientProviderBuilder. addMapper(DbMapper<TYPE> dbMapper, GenericType<TYPE> mappedType)
Add a custom mapper with generic types support.default <T> Optional<DbMapper<T>>
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 GenericType Modifier and Type Method Description Optional<GenericType<?>>
MessageBodyContext.Event. entityType()
Get the type requested for conversion.Methods in io.helidon.media.common with parameters of type GenericType Modifier and Type Method Description MessageBodyOperator.PredicateResult
MessageBodyOperator. 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.default Function<MessageBodyWriterContext,Flow.Publisher<DataChunk>>
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.<U extends T>
Single<U>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.static MessageBodyOperator.PredicateResult
MessageBodyOperator.PredicateResult. supports(Class<?> expected, GenericType<?> actual)
Whether handled class is supported.default Single<T>
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.Flow.Publisher<DataChunk>
MessageBodyStreamWriter. write(Flow.Publisher<? extends T> publisher, GenericType<? extends T> type, MessageBodyWriterContext context)
Generate HTTP payload from the given stream of objects.Flow.Publisher<DataChunk>
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 GenericType Modifier and Type Method Description MessageBodyOperator.PredicateResult
BodyPartBodyStreamReader. accept(GenericType<?> type, MessageBodyReaderContext context)
MessageBodyOperator.PredicateResult
BodyPartBodyStreamWriter. accept(GenericType<?> type, MessageBodyWriterContext context)
MessageBodyOperator.PredicateResult
MultiPartBodyReader. accept(GenericType<?> type, MessageBodyReaderContext ctx)
Deprecated, for removal: This API element is subject to removal in a future version.MessageBodyOperator.PredicateResult
MultiPartBodyWriter. accept(GenericType<?> type, MessageBodyWriterContext context)
<U extends ReadableBodyPart>
Flow.Publisher<U>BodyPartBodyStreamReader. read(Flow.Publisher<DataChunk> publisher, GenericType<U> type, MessageBodyReaderContext context)
<U extends MultiPart>
Single<U>MultiPartBodyReader. read(Flow.Publisher<DataChunk> publisher, GenericType<U> type, MessageBodyReaderContext context)
Deprecated, for removal: This API element is subject to removal in a future version.Flow.Publisher<DataChunk>
BodyPartBodyStreamWriter. write(Flow.Publisher<? extends WriteableBodyPart> content, GenericType<? extends WriteableBodyPart> type, MessageBodyWriterContext context)
Flow.Publisher<DataChunk>
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 GenericType Modifier and Type Method Description <T> Single<T>
WebClientRequestBuilder. request(GenericType<T> responseType)
Performs prepared request and transforms response to requested type.
-