Package io.lettuce.core.dynamic.output
Class OutputRegistry
- java.lang.Object
-
- io.lettuce.core.dynamic.output.OutputRegistry
-
public class OutputRegistry extends Object
Registry forCommandOutput
types and theirfactories
.- Since:
- 5.0
- Author:
- Mark Paluch
- See Also:
CommandOutput
-
-
Constructor Summary
Constructors Constructor Description OutputRegistry()
Create a newOutputRegistry
registering builtinCommandOutput
types.OutputRegistry(boolean registerBuiltin)
Create a newOutputRegistry
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends CommandOutput<?,?,?>>
voidregister(Class<T> commandOutputClass, CommandOutputFactory commandOutputFactory)
Register aCommandOutput
type with itsCommandOutputFactory
.
-
-
-
Constructor Detail
-
OutputRegistry
public OutputRegistry()
Create a newOutputRegistry
registering builtinCommandOutput
types.
-
OutputRegistry
public OutputRegistry(boolean registerBuiltin)
Create a newOutputRegistry
.- Parameters:
registerBuiltin
-true
to register builtinCommandOutput
types.
-
-
Method Detail
-
register
public <T extends CommandOutput<?,?,?>> void register(Class<T> commandOutputClass, CommandOutputFactory commandOutputFactory)
Register aCommandOutput
type with itsCommandOutputFactory
.- Parameters:
commandOutputClass
- must not benull
.commandOutputFactory
- must not benull
.
-
-