Package io.micronaut.core.async
Class ReactiveStreamsTypeInformationProvider
java.lang.Object
io.micronaut.core.async.ReactiveStreamsTypeInformationProvider
- All Implemented Interfaces:
TypeInformationProvider
public final class ReactiveStreamsTypeInformationProvider
extends Object
implements TypeInformationProvider
Implementation of
TypeInformationProvider
for reactive streams.- Since:
- 2.4.0
- Author:
- graemerocher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isCompletable
(@NonNull Class<?> type) does the type represent a completable type.boolean
isReactive
(@NonNull Class<?> type) does the type represent a reactive type.boolean
does the given type represent a type that emits a single item.boolean
isSpecifiedSingle
(@NonNull AnnotationMetadataProvider annotationMetadataProvider) Returns whether the annotation metadata specifies the type as single.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.type.TypeInformationProvider
isWrapperType
-
Constructor Details
-
ReactiveStreamsTypeInformationProvider
public ReactiveStreamsTypeInformationProvider()
-
-
Method Details
-
isSpecifiedSingle
public boolean isSpecifiedSingle(@NonNull @NonNull AnnotationMetadataProvider annotationMetadataProvider) Description copied from interface:TypeInformationProvider
Returns whether the annotation metadata specifies the type as single.- Specified by:
isSpecifiedSingle
in interfaceTypeInformationProvider
- Parameters:
annotationMetadataProvider
- The annotation metadata provider- Returns:
- True if it does
-
isSingle
Description copied from interface:TypeInformationProvider
does the given type represent a type that emits a single item.- Specified by:
isSingle
in interfaceTypeInformationProvider
- Parameters:
type
- True if it does- Returns:
- True if it is single
-
isReactive
Description copied from interface:TypeInformationProvider
does the type represent a reactive type.- Specified by:
isReactive
in interfaceTypeInformationProvider
- Parameters:
type
- The type- Returns:
- True if it is reactive
-
isCompletable
Description copied from interface:TypeInformationProvider
does the type represent a completable type.- Specified by:
isCompletable
in interfaceTypeInformationProvider
- Parameters:
type
- The type- Returns:
- True if it is completable
-