| Modifier and Type | Field and Description |
|---|---|
| private Collection | |
| private final Map | |
| private final Map | commandDefinitions
A cache of all found command names and their corresponding command definition. |
| private Map | commandOverrides
A cache of all found CommandStep classes and their corresponding override CommandStep. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | computePipelineForCommandDefinition(CommandDefinition
the CommandDefinition to compute the pipeline commandDefinition)Compute the pipeline for a given command. |
| private void | consolidateCommandArgumentsForCommand(CommandDefinition commandDefinition)
Go through all the commandSteps on the pipeline and add their arguments to the commandDefinition arguments list. |
| public <T extends CommandResult> T | |
| private synchronized Collection | |
| private Map | Returns: a map with key of the CommandStep intended to override and value of the valid overriding command stepall commands found during runtime allCommandSteps)Find all commands that override other commands based on |
| private void | findDependenciesForCommand(DependencyUtil.
Given a CommandStep step this method adds to the pipelineGraph all the CommandSteps that are providing the dependencies that it requires. |
| public LiquibaseCommand | |
| public CommandDefinition | getCommandDefinition(String... commandName)
Returns the complete |
| public SortedSet | getCommands(boolean
if true, also include commands marked as includeInternal)CommandDefinition#getInternal()Returns all known |
| public static CommandFactory | |
| private Optional | Returns: an optional containing the CommandStep override if presentthe list of overrides overrides, CommandStep the step to check for overrides step)Get the override for a given CommandStep. |
| protected void | register(String[] commandName, CommandArgumentDefinition<?> definition)
Called by |
| protected void | |
| private void | validateOverrides(Map<Class<? extends CommandStep>, List<CommandStep>>
the list of overrides overrides)Validates that for all overrides, there is only a single override per command step. |
| private CommandStep | whoProvidesClass(Class<?> dependency, Collection<CommandStep> allCommandStepInstances)
Go through all command steps and find the step that provides the desired class. |
| allInstances | back to summary |
|---|---|
| private Collection<CommandStep> allInstances | |
| commandArgumentDefinitions | back to summary |
|---|---|
| private final Map<String, Set<CommandArgumentDefinition<?>>> commandArgumentDefinitions | |
| commandDefinitions | back to summary |
|---|---|
| private final Map<String[], CommandDefinition> commandDefinitions A cache of all found command names and their corresponding command definition. | |
| commandOverrides | back to summary |
|---|---|
| private Map<Class<? extends CommandStep>, CommandStep> commandOverrides A cache of all found CommandStep classes and their corresponding override CommandStep. | |
| CommandFactory | back to summary |
|---|---|
| protected CommandFactory() | |
| adjustCommandDefinitionForSteps | back to summary |
|---|---|
| private void adjustCommandDefinitionForSteps(CommandDefinition commandDefinition) | |
| computePipelineForCommandDefinition | back to summary |
|---|---|
| private void computePipelineForCommandDefinition(CommandDefinition commandDefinition) Compute the pipeline for a given command. Takes into consideration all the dependencies required by the command and other commands subscribed to it by getOrder.
| |
| consolidateCommandArgumentsForCommand | back to summary |
|---|---|
| private void consolidateCommandArgumentsForCommand(CommandDefinition commandDefinition) Go through all the commandSteps on the pipeline and add their arguments to the commandDefinition arguments list. | |
| execute | back to summary |
|---|---|
| public <T extends CommandResult> T execute(LiquibaseCommand<T> command) throws CommandExecutionException
Deprecated | |
| findAllInstances | back to summary |
|---|---|
| private synchronized Collection | |
| findAllOverrides | back to summary |
|---|---|
| private Map Find all commands that override other commands based on
| |
| findDependenciesForCommand | back to summary |
|---|---|
| private void findDependenciesForCommand(DependencyUtil. Given a CommandStep step this method adds to the pipelineGraph all the CommandSteps that are providing the dependencies that it requires. | |
| getCommand | back to summary |
|---|---|
| public LiquibaseCommand Deprecated | |
| getCommandDefinition | back to summary |
|---|---|
| public CommandDefinition getCommandDefinition(String... commandName) throws IllegalArgumentException Returns the complete
| |
| getCommands | back to summary |
|---|---|
| public SortedSet Returns all known
| |
| getInstance | back to summary |
|---|---|
| public static CommandFactory getInstance()
Deprecated | |
| getOverride | back to summary |
|---|---|
| private Optional Get the override for a given CommandStep.
| |
| register | back to summary |
|---|---|
| protected void register(String[] commandName, CommandArgumentDefinition<?> definition) Called by | |
| unregister | back to summary |
|---|---|
| protected void unregister(String[] commandName) Unregisters all information about the given | |
| validateOverrides | back to summary |
|---|---|
| private void validateOverrides(Map<Class<? extends CommandStep>, List<CommandStep>> overrides) throws RuntimeException Validates that for all overrides, there is only a single override per command step. Logs all invalid overrides found.
| |
| whoProvidesClass | back to summary |
|---|---|
| private CommandStep whoProvidesClass(Class<?> dependency, Collection<CommandStep> allCommandStepInstances) Go through all command steps and find the step that provides the desired class. | |