Package org.scijava.command
Interface Command
-
- All Superinterfaces:
Runnable,SciJavaPlugin
- All Known Implementing Classes:
ContextCommand,DynamicCommand,Inputs,InteractiveCommand,ModuleCommand,OptionsPlugin,UnimplementedCommand
public interface Command extends SciJavaPlugin, Runnable
Commandis a plugin that is executable. ACommandcan be executed as aModuleby wrapping it in an instance ofCommandModule.Commands discoverable at runtime must implement this interface and be annotated with @
Pluginwith attributePlugin.type()=Command.class. While it possible to create a command merely by implementing this interface, it is encouraged to instead extendContextCommand(or in some casesModuleCommand,DynamicCommandorInteractiveCommand) for convenience.- Author:
- Curtis Rueden
- See Also:
Plugin,PluginService