1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package org.talika.tarsis.command.factory;
24
25 import org.talika.tarsis.command.Command;
26
27 /**
28 * Interface that defines a command factory in Tarsis MVC Framework.<br>
29 * <br>
30 * The command factory is responsible of obtain <code>Command</code> object
31 * definitions from definition's repository. Command factories can read command
32 * definitions from an XML file, text file, a database or any other repository.
33 *
34 * @author Jose M. Palomar
35 * @version $Revision: 114 $
36 * @see org.talika.tarsis.command.Command
37 */
38 public interface CommandFactory {
39
40
41
42
43 /**
44 * Returns matching name command instance.
45 *
46 * @param name String name of command.
47 * @return Command command instance for given name or <code>null</code> if none
48 * found.
49 */
50 Command findCommand(String name);
51
52 }