org.sonatype.gshell.command.support
Class CommandActionSupport

java.lang.Object
  extended by org.sonatype.gshell.command.support.CommandActionSupport
All Implemented Interfaces:
Cloneable, CommandAction, NameAware
Direct Known Subclasses:
AliasCommand, ChangeDirectoryCommand, ComponentListCommand, CopyCommand, CreateDirectoryCommand, CurrentDirectoryCommand, DeleteDirectoryCommand, DeleteFileCommand, EchoCommand, ExitCommand, HelpCommand, HistoryCommand, HostnameCommand, InfoCommand, ListDirectoryCommand, LoggerLevelsCommand, LoggerListCommand, LoggerSetLevelCommand, PreferenceCommandSupport, RecallHistoryCommand, SetCommand, SourceCommand, UnaliasCommand, UnsetCommand, WgetCommand

public abstract class CommandActionSupport
extends Object
implements CommandAction, NameAware

Provides support for CommandAction implementations.

Since:
2.0
Author:
Jason Dillon

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.sonatype.gshell.command.CommandAction
CommandAction.Result
 
Field Summary
protected  org.slf4j.Logger log
           
 
Constructor Summary
CommandActionSupport()
           
 
Method Summary
 CommandAction clone()
           
protected  ResourceBundleMessageSource createMessages()
           
 jline.console.completer.Completer[] getCompleters()
           
 MessageSource getMessages()
           
 String getName()
           
 String getSimpleName()
           
 void setCompleters(jline.console.completer.Completer... completers)
           
 void setCompleters(List<jline.console.completer.Completer> completers)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sonatype.gshell.command.CommandAction
execute
 

Field Detail

log

protected final org.slf4j.Logger log
Constructor Detail

CommandActionSupport

public CommandActionSupport()
Method Detail

getName

public String getName()
Specified by:
getName in interface CommandAction

setName

public void setName(String name)
Specified by:
setName in interface NameAware

getSimpleName

public String getSimpleName()
Specified by:
getSimpleName in interface CommandAction

getMessages

public MessageSource getMessages()
Specified by:
getMessages in interface CommandAction

createMessages

protected ResourceBundleMessageSource createMessages()
Since:
2.4

getCompleters

public jline.console.completer.Completer[] getCompleters()
Specified by:
getCompleters in interface CommandAction

setCompleters

public void setCompleters(jline.console.completer.Completer... completers)

setCompleters

public void setCompleters(List<jline.console.completer.Completer> completers)

clone

public CommandAction clone()
Specified by:
clone in interface CommandAction
Overrides:
clone in class Object


Copyright © 2008-2011 Sonatype. All Rights Reserved.