spring-framework / org.springframework.core / ReactiveAdapterRegistry / getAdapter

getAdapter

@Nullable open fun getAdapter(reactiveType: Class<*>): ReactiveAdapter

Get the adapter for the given reactive type.

@Nullable open fun getAdapter(@Nullable reactiveType: Class<*>, @Nullable source: Any): ReactiveAdapter

Get the adapter for the given reactive type. Or if a "source" object is provided, its actual type is used instead.

Parameters

reactiveType - the reactive type (may be null if a concrete source object is given)

source - an instance of the reactive type (i.e. to adapt from; may be null if the reactive type is specified)