org.overlord.sramp.shell
Class ShellCommandFactory

java.lang.Object
  extended by org.overlord.sramp.shell.ShellCommandFactory

public class ShellCommandFactory
extends Object

Factory used to create shell commands.

Author:
eric.wittmann@redhat.com

Constructor Summary
ShellCommandFactory()
          Constructor.
 
Method Summary
 ShellCommand createCommand(QName commandName)
          Called to create a shell command.
 Set<QName> getCommandNames(String namespace)
          Gets the set of commands available within the given namespace.
 Set<String> getNamespaces()
          Gets the set of namespaces for all commands in the factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShellCommandFactory

public ShellCommandFactory()
Constructor.

Method Detail

createCommand

public ShellCommand createCommand(QName commandName)
                           throws Exception
Called to create a shell command.

Parameters:
commandName -
Throws:
Exception

getNamespaces

public Set<String> getNamespaces()
Gets the set of namespaces for all commands in the factory.


getCommandNames

public Set<QName> getCommandNames(String namespace)
Gets the set of commands available within the given namespace.

Parameters:
namespace -


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.