|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.talika.tarsis.service.AbstractService
org.talika.tarsis.command.factory.CommandFactoryService
Base implementation of CommandFactory interface.
Command factories plug in system like a service extending AbstractService.
| Constructor Summary | |
|---|---|
CommandFactoryService()
Creates a new CommandFactoryService object. |
|
| Method Summary | |
|---|---|
protected void |
addCommand(java.lang.String name,
Command cmd)
Adds a command definition to factory. |
protected void |
addCommands(java.util.Map cmds)
Adds a map of command definitions to factory. |
Command |
findCommand(java.lang.String name)
Returns matching name command instance. |
protected abstract void |
loadCommand(java.lang.String commandName)
Tries to load command definition from repository for a given name. |
protected abstract void |
loadPackage(java.lang.String packageName)
Tries to load all command definitions from repository for a given package. |
| Methods inherited from class org.talika.tarsis.service.AbstractService |
|---|
destroy, getContext, getLogger, getName, init |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CommandFactoryService()
CommandFactoryService object.
| Method Detail |
public final Command findCommand(java.lang.String name)
findCommand in interface CommandFactoryname - String name of command.
null if none
found.CommandFactory.findCommand(String)protected abstract void loadCommand(java.lang.String commandName)
commandName - String name of command to load.protected abstract void loadPackage(java.lang.String packageName)
packageName - String name for package to load.
protected final void addCommand(java.lang.String name,
Command cmd)
name - String name of command.cmd - Command instance of command.protected final void addCommands(java.util.Map cmds)
cmds - Map map of command instances.
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||