1 /*
2 * $Id: CommandFactory.java 114 2004-10-22 19:27:43Z josem $
3 *
4 * Tarsis
5 * Copyright (C) 2002 Talika Open Source Group
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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 // Constants
41
42 // Methods
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 }