1 /*
2 * ----------------------------------------------------------------------
3 * Copyright (C) 2009 Enrique Lara (k957@68k.org)
4 *
5 * TinLizard is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public License
7 * as published by the Free Software Foundation; either version 3.0
8 * of the License, or (at your option) any later version.
9 *
10 * TinLizard is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with TinLizard. If not, see http://www.gnu.org/licenses/.
17 * ----------------------------------------------------------------------
18 */
19 package tinlizard.dao;
20
21 import java.io.File;
22 import java.io.Writer;
23 import java.util.Locale;
24
25 /***
26 * Dao to permit mashing-in external, customizable, templates and resources.
27 */
28 public interface MashDao {
29 /*** The Plexus role identifier. */
30 String ROLE = MashDao.class.getName();
31
32 File getResourcesFile(String path);
33
34 void applyTemplate(Object it, String template, Writer out, Locale locale, String username);
35 }