author | František Kučera <franta-hg@frantovo.cz> |
Tue, 17 Jun 2014 18:19:01 +0200 | |
changeset 53 | 6bcb20e856fe |
parent 43 | 058c1c39251e |
child 111 | e4900596abdb |
permissions | -rw-r--r-- |
franta-hg@43 | 1 |
/** |
franta-hg@43 | 2 |
* Alt2XML |
franta-hg@43 | 3 |
* Copyright © 2014 František Kučera (frantovo.cz) |
franta-hg@43 | 4 |
* |
franta-hg@43 | 5 |
* This program is free software: you can redistribute it and/or modify |
franta-hg@43 | 6 |
* it under the terms of the GNU General Public License as published by |
franta-hg@43 | 7 |
* the Free Software Foundation, either version 3 of the License, or |
franta-hg@43 | 8 |
* (at your option) any later version. |
franta-hg@43 | 9 |
* |
franta-hg@43 | 10 |
* This program is distributed in the hope that it will be useful, |
franta-hg@43 | 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
franta-hg@43 | 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
franta-hg@43 | 13 |
* GNU General Public License for more details. |
franta-hg@43 | 14 |
* |
franta-hg@43 | 15 |
* You should have received a copy of the GNU General Public License |
franta-hg@43 | 16 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
franta-hg@43 | 17 |
*/ |
franta-hg@43 | 18 |
package cz.frantovo.alt2xml.out; |
franta-hg@43 | 19 |
|
franta-hg@43 | 20 |
/** |
franta-hg@43 | 21 |
* Interface of an output module. |
franta-hg@43 | 22 |
* Modules are discovered over META-INF/services. |
franta-hg@43 | 23 |
* Must have non-parametric constructor. |
franta-hg@43 | 24 |
* Should be lightweight – use lazy initialization |
franta-hg@43 | 25 |
* (all factories are instantiated, even if not used). |
franta-hg@43 | 26 |
* |
franta-hg@43 | 27 |
* @author Ing. František Kučera (frantovo.cz) |
franta-hg@43 | 28 |
*/ |
franta-hg@43 | 29 |
public interface ActionFactory { |
franta-hg@43 | 30 |
|
franta-hg@43 | 31 |
/** |
franta-hg@43 | 32 |
* @return short code/name for this action – is used on command line to say, which action should |
franta-hg@43 | 33 |
* be executed. |
franta-hg@43 | 34 |
*/ |
franta-hg@43 | 35 |
public String getActionCode(); |
franta-hg@43 | 36 |
|
franta-hg@43 | 37 |
public Action getAction(ActionContext context) throws OutputActionException; |
franta-hg@43 | 38 |
|
franta-hg@43 | 39 |
} |