Package io.lettuce.core.dynamic.output
Class CommandOutputResolverSupport
- java.lang.Object
-
- io.lettuce.core.dynamic.output.CommandOutputResolverSupport
-
- Direct Known Subclasses:
OutputRegistryCommandOutputFactoryResolver
public abstract class CommandOutputResolverSupport extends Object
Base class forCommandOutputFactory
resolution such asOutputRegistryCommandOutputFactoryResolver
.This class provides methods to check provider/selector type assignability. Subclasses are responsible for calling methods in this class in the correct order.
- Author:
- Mark Paluch
-
-
Constructor Summary
Constructors Constructor Description CommandOutputResolverSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isAssignableFrom(OutputSelector selector, OutputType provider)
Overridable hook to check whetherselector
can be assigned from the provider typeprovider
.
-
-
-
Method Detail
-
isAssignableFrom
protected boolean isAssignableFrom(OutputSelector selector, OutputType provider)
Overridable hook to check whetherselector
can be assigned from the provider typeprovider
.This method descends the component type hierarchy and considers primitive/wrapper type conversion.
- Parameters:
selector
- must not benull
.provider
- must not benull
.- Returns:
true
if selector can be assigned from its provider type.
-
-