public abstract class AbstractCommandStep extends Object implements CommandStep
CommandStep
implementations.Modifier and Type | Field and Description |
---|---|
protected static ResourceBundle |
coreBundle |
ORDER_DEFAULT, ORDER_NOT_APPLICABLE
Constructor and Description |
---|
AbstractCommandStep() |
Modifier and Type | Method and Description |
---|---|
void |
adjustCommandDefinition(CommandDefinition commandDefinition)
Default implementation makes no changes
|
int |
getOrder(CommandDefinition commandDefinition)
The order in the pipeline that this step should be executed in.
|
List<Class<?>> |
providedDependencies()
Returns a list of all the dependency Classes that this step provides
|
List<Class<?>> |
requiredDependencies()
Return a list of configured Classes that this command requires to be passed as a dependency.
|
void |
validate(CommandScope commandScope)
Default implementation does no additional validation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
defineCommandNames, run
protected static ResourceBundle coreBundle
public List<Class<?>> requiredDependencies()
CommandStep
requiredDependencies
in interface CommandStep
public List<Class<?>> providedDependencies()
CommandStep
providedDependencies
in interface CommandStep
public int getOrder(CommandDefinition commandDefinition)
CommandStep
CommandDefinition.getName()
but it can check other things in the definition such as arguments.getOrder
in interface CommandStep
CommandStep.ORDER_DEFAULT
if the command scope's name matches CommandStep.defineCommandNames()
. Otherwise CommandStep.ORDER_NOT_APPLICABLE
public void validate(CommandScope commandScope) throws CommandValidationException
validate
in interface CommandStep
CommandValidationException
public void adjustCommandDefinition(CommandDefinition commandDefinition)
adjustCommandDefinition
in interface CommandStep
Copyright © 2023 Liquibase.org. All rights reserved.