Package io.apicurio.registry.cli
Class AbstractCommand
- java.lang.Object
-
- io.apicurio.registry.cli.AbstractCommand
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
ExportCommand,GroupCommand,ImportCommand
public abstract class AbstractCommand extends Object implements Runnable
- Author:
- Ales Justin
-
-
Constructor Summary
Constructors Constructor Description AbstractCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RegistryClientgetClient()protected voidprintln(Object value)For printing the result of the commands we just use the standard output.
-
-
-
Field Detail
-
log
protected Logger log
Use this logger to log all debug traces, it will be printed if the --logLevel is set
-
mapper
protected static final com.fasterxml.jackson.databind.ObjectMapper mapper
-
-
Method Detail
-
println
protected void println(Object value)
For printing the result of the commands we just use the standard output. Use the logger above for debug traces.
-
getClient
protected RegistryClient getClient()
-
-