Package com.aspectran.daemon.command
Class DaemonCommandRegistry
- java.lang.Object
-
- com.aspectran.daemon.command.DaemonCommandRegistry
-
- All Implemented Interfaces:
CommandRegistry
public class DaemonCommandRegistry extends java.lang.Object implements CommandRegistry
-
-
Constructor Summary
Constructors Constructor Description DaemonCommandRegistry(Daemon daemon)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCommand(java.lang.Class<? extends Command> commandClass)
void
addCommand(java.lang.String... classNames)
java.util.Collection<Command>
getAllCommands()
Command
getCommand(java.lang.Class<? extends Command> commandClass)
Command
getCommand(java.lang.String commandName)
Daemon
getDaemon()
-
-
-
Constructor Detail
-
DaemonCommandRegistry
public DaemonCommandRegistry(Daemon daemon)
-
-
Method Detail
-
getDaemon
public Daemon getDaemon()
- Specified by:
getDaemon
in interfaceCommandRegistry
-
getCommand
public Command getCommand(java.lang.String commandName)
- Specified by:
getCommand
in interfaceCommandRegistry
-
getCommand
public Command getCommand(java.lang.Class<? extends Command> commandClass)
- Specified by:
getCommand
in interfaceCommandRegistry
-
getAllCommands
public java.util.Collection<Command> getAllCommands()
- Specified by:
getAllCommands
in interfaceCommandRegistry
-
addCommand
public void addCommand(java.lang.String... classNames)
-
addCommand
public void addCommand(java.lang.Class<? extends Command> commandClass)
-
-