java.lang.Object
io.lettuce.core.dynamic.output.OutputRegistry
public class OutputRegistry extends Object
Registry for
CommandOutput types and their factories.- Since:
- 5.0
- Author:
- Mark Paluch
- See Also:
CommandOutput
-
Constructor Summary
Constructors Constructor Description OutputRegistry()Create a newOutputRegistryregistering builtinCommandOutputtypes.OutputRegistry(boolean registerBuiltin)Create a newOutputRegistry. -
Method Summary
Modifier and Type Method Description <T extends CommandOutput<?, ?, ?>>
voidregister(Class<T> commandOutputClass, CommandOutputFactory commandOutputFactory)Register aCommandOutputtype with itsCommandOutputFactory.
-
Constructor Details
-
OutputRegistry
public OutputRegistry()Create a newOutputRegistryregistering builtinCommandOutputtypes. -
OutputRegistry
public OutputRegistry(boolean registerBuiltin)Create a newOutputRegistry.- Parameters:
registerBuiltin-trueto register builtinCommandOutputtypes.
-
-
Method Details
-
register
public <T extends CommandOutput<?, ?, ?>> void register(Class<T> commandOutputClass, CommandOutputFactory commandOutputFactory)Register aCommandOutputtype with itsCommandOutputFactory.- Parameters:
commandOutputClass- must not benull.commandOutputFactory- must not benull.
-