use of io.lettuce.core.dynamic.output.OutputRegistryCommandOutputFactoryResolver in project lettuce-core by lettuce-io.
the class CommandSegmentCommandFactoryUnitTests method createCommand.
@SuppressWarnings("unchecked")
private RedisCommand<?, ?, ?> createCommand(CommandMethod commandMethod, RedisCodec<?, ?> codec, Object... args) {
CommandSegmentFactory segmentFactory = new AnnotationCommandSegmentFactory();
CodecAwareOutputFactoryResolver outputFactoryResolver = new CodecAwareOutputFactoryResolver(new OutputRegistryCommandOutputFactoryResolver(new OutputRegistry()), codec);
CommandSegmentCommandFactory factory = new CommandSegmentCommandFactory(segmentFactory.createCommandSegments(commandMethod), commandMethod, codec, outputFactoryResolver);
return factory.createCommand(args);
}
Aggregations