Class ReactiveWrappers
java.lang.Object
org.springframework.data.repository.util.ReactiveWrappers
Deprecated, for removal: This API element is subject to removal in a future version.
Utility class to expose details about reactive wrapper types. This class exposes whether a reactive wrapper is
supported in general and whether a particular type is suitable for no-value/single-value/multi-value usage.
Supported types are discovered by their availability on the class path. This class is typically used to determine multiplicity and whether a reactive wrapper type is acceptable for a specific operation.
- Since:
- 2.0
- Author:
- Mark Paluch, Christoph Strobl, Oliver Gierke, Gerrit Meier, Hantsy Bai
- See Also:
-
PublisherSingleMaybeObservableCompletableFlowableMultiUniMonoFlux
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated, for removal: This API element is subject to removal in a future version.useReactiveWrappers.ReactiveLibraryinstead. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDeprecated, for removal: This API element is subject to removal in a future version.Returns true if reactive support is available.static booleanisAvailable(ReactiveWrappers.ReactiveLibrary reactiveLibrary) Deprecated, for removal: This API element is subject to removal in a future version.Returns true if theReactiveWrappers.ReactiveLibraryis available.static booleanisMultiValueType(Class<?> type) Deprecated, for removal: This API element is subject to removal in a future version.Returns true iftypeis a reactive wrapper type supporting multiple values (0..Nelements).static booleanisNoValueType(Class<?> type) Deprecated, for removal: This API element is subject to removal in a future version.Returns true iftypeis a reactive wrapper type that contains no value.static booleanisSingleValueType(Class<?> type) Deprecated, for removal: This API element is subject to removal in a future version.Returns true iftypeis a reactive wrapper type for a single value.static booleanDeprecated, for removal: This API element is subject to removal in a future version.Returns true if thetypeis a supported reactive wrapper type.static booleanusesReactiveType(Class<?> type) Deprecated, for removal: This API element is subject to removal in a future version.Returns whether the given type uses any reactive wrapper type in its method signatures.
-
Method Details
-
isAvailable
public static boolean isAvailable()Deprecated, for removal: This API element is subject to removal in a future version.Returns true if reactive support is available. More specifically, whether any of the libraries defined inReactiveWrappers.ReactiveLibraryare on the class path.- Returns:
- true if reactive support is available.
-
isAvailable
Deprecated, for removal: This API element is subject to removal in a future version.Returns true if theReactiveWrappers.ReactiveLibraryis available.- Parameters:
reactiveLibrary- must not be null.- Returns:
- true if the
ReactiveWrappers.ReactiveLibraryis available.
-
supports
Deprecated, for removal: This API element is subject to removal in a future version.Returns true if thetypeis a supported reactive wrapper type.- Parameters:
type- must not be null.- Returns:
- true if the
typeis a supported reactive wrapper type.
-
usesReactiveType
Deprecated, for removal: This API element is subject to removal in a future version.Returns whether the given type uses any reactive wrapper type in its method signatures.- Parameters:
type- must not be null.- Returns:
-
isNoValueType
Deprecated, for removal: This API element is subject to removal in a future version.Returns true iftypeis a reactive wrapper type that contains no value.- Parameters:
type- must not be null.- Returns:
- true if
typeis a reactive wrapper type that contains no value.
-
isSingleValueType
Deprecated, for removal: This API element is subject to removal in a future version.Returns true iftypeis a reactive wrapper type for a single value.- Parameters:
type- must not be null.- Returns:
- true if
typeis a reactive wrapper type for a single value.
-
isMultiValueType
Deprecated, for removal: This API element is subject to removal in a future version.Returns true iftypeis a reactive wrapper type supporting multiple values (0..Nelements).- Parameters:
type- must not be null.- Returns:
- true if
typeis a reactive wrapper type supporting multiple values (0..Nelements).
-
ReactiveWrappersinstead as the utility was moved into theorg.springframework.data.utilpackage.