com.maverick.sshd.shell
Class ShellCommandFactory

java.lang.Object
  extended by com.maverick.sshd.shell.ShellCommandFactory

public class ShellCommandFactory
extends Object


Method Summary
 void addConfigurator(ShellCommandConfigurator configurator)
           
static ShellCommandFactory getInstance()
           
 Set<String> getSupportedCommands()
           
 void installCommand(String cmd, Class<? extends ShellCommand> cls)
           
 ShellCommand newInstance(String command)
           
 void removeConfigurator(ShellCommandConfigurator configurator)
           
 boolean supportsCommand(String command)
           
 void uninstallCommand(String cmd)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ShellCommandFactory getInstance()

addConfigurator

public void addConfigurator(ShellCommandConfigurator configurator)

removeConfigurator

public void removeConfigurator(ShellCommandConfigurator configurator)

installCommand

public void installCommand(String cmd,
                           Class<? extends ShellCommand> cls)

uninstallCommand

public void uninstallCommand(String cmd)

getSupportedCommands

public Set<String> getSupportedCommands()

supportsCommand

public boolean supportsCommand(String command)

newInstance

public ShellCommand newInstance(String command)
                         throws UnsupportedCommandException,
                                IllegalAccessException,
                                InstantiationException
Throws:
UnsupportedCommandException
IllegalAccessException
InstantiationException


Copyright © 2012. All Rights Reserved.