Class OperationCommandContainer
- java.lang.Object
-
- org.aesh.command.container.DefaultCommandContainer<CLICommandInvocation>
-
- org.jboss.as.cli.impl.aesh.cmd.operation.OperationCommandContainer
-
- All Implemented Interfaces:
AutoCloseable,org.aesh.command.container.CommandContainer<CLICommandInvocation>
public class OperationCommandContainer extends org.aesh.command.container.DefaultCommandContainer<CLICommandInvocation>
A container that handles DMR operations in order to allow to mix legacy commands with new commands when aesh operators are in use. Aesh parsing and completion are disabled and delegated to legacy parsing and completion. Because the set of operation names is unbounded, any command that starts with a ":", "/" or "." is concidered an operation and this container will handle the command.- Author:
- jdenise@redhat.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classOperationCommandContainer.OperationCommandclassOperationCommandContainer.OperationParser
-
Constructor Summary
Constructors Constructor Description OperationCommandContainer(CommandContextImpl ctx)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()StringgetBuildErrorMessage()org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>getParser()booleanhaveBuildError()static booleanisOperation(String mainCommand)
-
-
-
Constructor Detail
-
OperationCommandContainer
public OperationCommandContainer(CommandContextImpl ctx)
-
-
Method Detail
-
isOperation
public static boolean isOperation(String mainCommand)
-
getParser
public org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> getParser()
-
haveBuildError
public boolean haveBuildError()
-
getBuildErrorMessage
public String getBuildErrorMessage()
-
-