public class ShellCommandFactory extends CommandFactory<ShellCommand>
commands, configurators
Constructor and Description |
---|
ShellCommandFactory(CommandFactory<? extends ShellCommand>... commandFactories) |
Modifier and Type | Method and Description |
---|---|
protected void |
configureCommand(ShellCommand c,
Connection con) |
RootShell |
createShell(Connection connection) |
Set<String> |
getSupportedCommands() |
protected void |
installFactory(ShellCommandFactory factory) |
protected void |
installShellCommands() |
protected ShellCommand |
newInstance(String command,
Connection con) |
boolean |
supportsCommand(String command) |
addConfigurator, createCommand, installCommand, installCommand, removeConfigurator, uninstallCommand
public ShellCommandFactory(CommandFactory<? extends ShellCommand>... commandFactories)
protected void installShellCommands()
protected void installFactory(ShellCommandFactory factory)
public Set<String> getSupportedCommands()
getSupportedCommands
in class CommandFactory<ShellCommand>
protected ShellCommand newInstance(String command, Connection con) throws UnsupportedCommandException, IllegalAccessException, InstantiationException, IOException, PermissionDeniedException
newInstance
in class CommandFactory<ShellCommand>
UnsupportedCommandException
IllegalAccessException
InstantiationException
IOException
PermissionDeniedException
public boolean supportsCommand(String command)
supportsCommand
in class CommandFactory<ShellCommand>
public RootShell createShell(Connection connection) throws PermissionDeniedException, IOException
PermissionDeniedException
IOException
protected void configureCommand(ShellCommand c, Connection con) throws IOException, PermissionDeniedException
configureCommand
in class CommandFactory<ShellCommand>
IOException
PermissionDeniedException
Copyright © 2024. All rights reserved.