Package io.quarkus.deployment.builditem
Class ConsoleCommandBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.deployment.builditem.ConsoleCommandBuildItem
public final class ConsoleCommandBuildItem
extends io.quarkus.builder.item.MultiBuildItem
A
MultiBuildItem used to register console commands.
Extensions can produce this build item to contribute AEsh commands that are made available in the Quarkus interactive console.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final org.aesh.command.container.CommandContainerThe command container registered by this build item. -
Constructor Summary
ConstructorsConstructorDescriptionConsoleCommandBuildItem(org.aesh.command.Command<?> consoleCommand) Creates a build item from a command implementation.ConsoleCommandBuildItem(org.aesh.command.container.CommandContainer consoleCommand) Creates a build item from an already builtCommandContainer.ConsoleCommandBuildItem(org.aesh.command.impl.internal.ProcessedCommand consoleCommand) Creates a build item from an AEshProcessedCommand. -
Method Summary
Modifier and TypeMethodDescriptionorg.aesh.command.container.CommandContainer
-
Field Details
-
consoleCommand
final org.aesh.command.container.CommandContainer consoleCommandThe command container registered by this build item. This is the actual command that will be executed when the user invokes the command in the console.
-
-
Constructor Details
-
ConsoleCommandBuildItem
public ConsoleCommandBuildItem(org.aesh.command.container.CommandContainer consoleCommand) Creates a build item from an already builtCommandContainer.- Parameters:
consoleCommand- the command container to register
-
ConsoleCommandBuildItem
public ConsoleCommandBuildItem(org.aesh.command.impl.internal.ProcessedCommand consoleCommand) Creates a build item from an AEshProcessedCommand.- Parameters:
consoleCommand- the processed command metadata
-
ConsoleCommandBuildItem
public ConsoleCommandBuildItem(org.aesh.command.Command<?> consoleCommand) Creates a build item from a command implementation.- Parameters:
consoleCommand- the command implementation to register
-
-
Method Details
-
getConsoleCommand
public org.aesh.command.container.CommandContainer getConsoleCommand()- Returns:
- the command container registered by this build item
-