java.lang.Object
io.lettuce.core.dynamic.output.CommandOutputResolverSupport
- Direct Known Subclasses:
OutputRegistryCommandOutputFactoryResolver
public abstract class CommandOutputResolverSupport extends Object
Base class for
CommandOutputFactory resolution such as OutputRegistryCommandOutputFactoryResolver.
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
Modifier and Type Method Description protected booleanisAssignableFrom(OutputSelector selector, OutputType provider)Overridable hook to check whetherselectorcan be assigned from the provider typeprovider.
-
Constructor Details
-
CommandOutputResolverSupport
public CommandOutputResolverSupport()
-
-
Method Details
-
isAssignableFrom
Overridable hook to check whetherselectorcan 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:
trueif selector can be assigned from its provider type.
-