public class OutputRegistryCommandOutputFactoryResolver extends CommandOutputResolverSupport implements CommandOutputFactoryResolver
CommandOutputFactoryResolver using OutputRegistry to resolve a CommandOutputFactory.
Types registered in OutputRegistry are inspected for the types they produce and matched with the declared repository
method. If resolution yields multiple CommandOutputs, the first matched output is used.
OutputRegistry| Constructor and Description |
|---|
OutputRegistryCommandOutputFactoryResolver(OutputRegistry outputRegistry)
Create a new
OutputRegistryCommandOutputFactoryResolver given OutputRegistry. |
| Modifier and Type | Method and Description |
|---|---|
CommandOutputFactory |
resolveCommandOutput(OutputSelector outputSelector)
Resolve a regular
CommandOutputFactory that produces the CommandOutput result
component type. |
CommandOutputFactory |
resolveStreamingCommandOutput(OutputSelector outputSelector)
Resolve a streaming
CommandOutputFactory that produces the StreamingOutput result
component type. |
isAssignableFrompublic OutputRegistryCommandOutputFactoryResolver(OutputRegistry outputRegistry)
OutputRegistryCommandOutputFactoryResolver given OutputRegistry.outputRegistry - must not be null.public CommandOutputFactory resolveCommandOutput(OutputSelector outputSelector)
CommandOutputFactoryResolverCommandOutputFactory that produces the CommandOutput result
component type.resolveCommandOutput in interface CommandOutputFactoryResolveroutputSelector - must not be null.CommandOutputFactory if resolved, null otherwise.public CommandOutputFactory resolveStreamingCommandOutput(OutputSelector outputSelector)
CommandOutputFactoryResolverCommandOutputFactory that produces the StreamingOutput result
component type.resolveStreamingCommandOutput in interface CommandOutputFactoryResolveroutputSelector - must not be null.CommandOutputFactory that implements StreamingOutput if resolved,
null otherwise.Copyright © 2021 lettuce.io. All rights reserved.