Interface CommandRunBuilder.CommandListener<C extends io.dropwizard.core.Configuration>
-
- Type Parameters:
C
- configuration type
- Enclosing class:
- CommandRunBuilder<C extends io.dropwizard.core.Configuration>
public static interface CommandRunBuilder.CommandListener<C extends io.dropwizard.core.Configuration>
Command execution listener. Could be used to apply some additional initialization and clean for command execution.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
cleanup(CommandResult<C> result)
Called after command execution (even if execution fails).default void
setup(java.lang.String... args)
Called before command execution.
-
-
-
Method Detail
-
setup
default void setup(java.lang.String... args)
Called before command execution.- Parameters:
args
- run arguments (without added configuration file) - exactly as specified in test
-
cleanup
default void cleanup(CommandResult<C> result)
Called after command execution (even if execution fails).- Parameters:
result
- command execution result
-
-