Class LegacyCommandContainer
- java.lang.Object
-
- org.aesh.command.container.DefaultCommandContainer<CLICommandInvocation>
-
- org.jboss.as.cli.impl.aesh.cmd.operation.LegacyCommandContainer
-
- All Implemented Interfaces:
AutoCloseable,org.aesh.command.container.CommandContainer<CLICommandInvocation>
public class LegacyCommandContainer extends org.aesh.command.container.DefaultCommandContainer<CLICommandInvocation>
A container that wraps aCommandHandlerin 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.- Author:
- jdenise@redhat.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classLegacyCommandContainer.CommandParserclassLegacyCommandContainer.LegacyCommand
-
Constructor Summary
Constructors Constructor Description LegacyCommandContainer(CommandContextImpl ctx, String[] names, CommandHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()StringgetBuildErrorMessage()org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>getParser()booleanhaveBuildError()
-
-
-
Constructor Detail
-
LegacyCommandContainer
public LegacyCommandContainer(CommandContextImpl ctx, String[] names, CommandHandler handler) throws org.aesh.command.parser.CommandLineParserException
- Throws:
org.aesh.command.parser.CommandLineParserException
-
-
Method Detail
-
getParser
public org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> getParser()
-
haveBuildError
public boolean haveBuildError()
-
getBuildErrorMessage
public String getBuildErrorMessage()
-
-