@Vetoed public class ShellImpl extends Object implements Shell
Shell interface.
Use the AddonRegistry.getServices(Class) to retrieve an instance of this object| Constructor and Description |
|---|
ShellImpl(org.jboss.forge.addon.resource.FileResource<?> initialResource,
org.jboss.aesh.console.settings.Settings settings,
CommandManager commandManager,
org.jboss.forge.furnace.addons.AddonRegistry addonRegistry) |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.forge.furnace.spi.ListenerRegistration<org.jboss.forge.addon.ui.CommandExecutionListener> |
addCommandExecutionListener(org.jboss.forge.addon.ui.CommandExecutionListener listener) |
void |
close() |
org.jboss.forge.addon.ui.result.Result |
execute(AbstractShellInteraction shellCommand) |
AbstractShellInteraction |
findCommand(ShellContext shellContext,
String line)
Used in
ForgeCompletion and ForgeConsoleCallback |
Collection<AbstractShellInteraction> |
findMatchingCommands(ShellContext shellContext,
String line) |
org.jboss.aesh.console.Console |
getConsole() |
org.jboss.forge.addon.convert.ConverterFactory |
getConverterFactory() |
org.jboss.forge.addon.resource.FileResource<?> |
getCurrentResource() |
boolean |
isGUI() |
ShellContextImpl |
newShellContext(org.jboss.aesh.console.ConsoleOperation consoleOperation) |
void |
setCurrentResource(org.jboss.forge.addon.resource.FileResource<?> resource) |
public ShellImpl(org.jboss.forge.addon.resource.FileResource<?> initialResource,
org.jboss.aesh.console.settings.Settings settings,
CommandManager commandManager,
org.jboss.forge.furnace.addons.AddonRegistry addonRegistry)
public org.jboss.forge.furnace.spi.ListenerRegistration<org.jboss.forge.addon.ui.CommandExecutionListener> addCommandExecutionListener(org.jboss.forge.addon.ui.CommandExecutionListener listener)
addCommandExecutionListener in interface org.jboss.forge.addon.ui.UIProviderpublic org.jboss.aesh.console.Console getConsole()
getConsole in interface Shellpublic AbstractShellInteraction findCommand(ShellContext shellContext, String line)
ForgeCompletion and ForgeConsoleCallbackpublic Collection<AbstractShellInteraction> findMatchingCommands(ShellContext shellContext, String line)
public org.jboss.forge.addon.ui.result.Result execute(AbstractShellInteraction shellCommand)
public ShellContextImpl newShellContext(org.jboss.aesh.console.ConsoleOperation consoleOperation)
@PreDestroy public void close()
public org.jboss.forge.addon.convert.ConverterFactory getConverterFactory()
public org.jboss.forge.addon.resource.FileResource<?> getCurrentResource()
getCurrentResource in interface Shellpublic void setCurrentResource(org.jboss.forge.addon.resource.FileResource<?> resource)
setCurrentResource in interface Shellpublic boolean isGUI()
isGUI in interface org.jboss.forge.addon.ui.UIProviderCopyright © 2013 JBoss by Red Hat. All Rights Reserved.