##### Coverage Report - org.webmacro.resource.TemplateLoaderFactory

Classes in this File | Line Coverage | Branch Coverage | Complexity
TemplateLoaderFactory |
N/A | N/A
N/A | N/A
| 1.0;1

1 |  |
     /*
2 |  |
      * Copyright (C) 1998-2000 Semiotek Inc.  All Rights Reserved.
3 |  |
      *
4 |  |
      * Redistribution and use in source and binary forms, with or without
5 |  |
      * modification, are permitted under the terms of either of the following
6 |  |
      * Open Source licenses:
7 |  |
      *
8 |  |
      * The GNU General Public License, version 2, or any later version, as
9 |  |
      * published by the Free Software Foundation
10 |  |
      * (http://www.fsf.org/copyleft/gpl.html);
11 |  |
      *
12 |  |
      *  or
13 |  |
      *
14 |  |
      * The Semiotek Public License (http://webmacro.org/LICENSE.)
15 |  |
      *
16 |  |
      * This software is provided "as is", with NO WARRANTY, not even the
17 |  |
      * implied warranties of fitness to purpose, or merchantability. You
18 |  |
      * assume all risks and liabilities associated with its use.
19 |  |
      *
20 |  |
      * See www.webmacro.org for more information on the WebMacro project.
21 |  |
      */
22 |  |
     package org.webmacro.resource;
23 |  |
24 |  |
     import org.webmacro.Broker;
25 |  |
     import org.webmacro.InitException;
26 |  |
27 |  |
     /**
28 |  |
      * Interface for template loader factories.
29 |  |
      * Implementations of this interface have to create template loaders
30 |  |
      * based on a string describing the template loader.
31 |  |
      * @author Sebastian Kanthak (sebastian.kanthak@muehlheim.de)
32 |  |
      */
33 |  |
     public interface TemplateLoaderFactory
34 |  |
     {
35 |  |
36 |  |
         /**
37 |  |
          * Create a template loader
38 |  |
          * @param b broker to use
39 |  |
          * @param config string describing template loader to construct
40 |  |
          * @return template loader
41 |  |
          * @exception InitException if template loader could not be constructed
42 |  |
          */
43 |  |
         TemplateLoader getTemplateLoader (Broker b, String config) throws InitException;
44 |  |
     }