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, uninstallCommandpublic 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>UnsupportedCommandExceptionIllegalAccessExceptionInstantiationExceptionIOExceptionPermissionDeniedExceptionpublic boolean supportsCommand(String command)
supportsCommand in class CommandFactory<ShellCommand>public RootShell createShell(Connection connection) throws PermissionDeniedException, IOException
PermissionDeniedExceptionIOExceptionprotected void configureCommand(ShellCommand c, Connection con) throws IOException, PermissionDeniedException
configureCommand in class CommandFactory<ShellCommand>IOExceptionPermissionDeniedExceptionCopyright © 2025. All rights reserved.