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
Modifier and TypeMethodDescriptiondefault voidcleanup(CommandResult<C> result) Called after command execution (even if execution fails).default voidCalled before command execution.
-
Method Details
-
setup
Called before command execution.- Parameters:
args- run arguments (without added configuration file) - exactly as specified in test
-
cleanup
Called after command execution (even if execution fails).- Parameters:
result- command execution result
-