public abstract class CommandOutputResolverSupport extends Object
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.
| Constructor and Description |
|---|
CommandOutputResolverSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isAssignableFrom(OutputSelector selector,
OutputType provider)
Overridable hook to check whether
selector can be assigned from the provider type provider. |
protected boolean isAssignableFrom(OutputSelector selector, OutputType provider)
selector can be assigned from the provider type provider.
This method descends the component type hierarchy and considers primitive/wrapper type conversion.
selector - must not be null.provider - must not be null.true if selector can be assigned from its provider type.Copyright © 2021 lettuce.io. All rights reserved.