View Javadoc
1   package org.melati.app.test;
2   
3   import org.melati.MelatiConfig;
4   import org.melati.app.TemplateApp;
5   import org.melati.template.NoTemplateEngine;
6   import org.melati.util.MelatiException;
7   
8   /**
9    * @author timp
10   * @since 2007-12-06
11   *
12   */
13  public class MisConfiguredTemplateApp extends TemplateApp {
14  
15    public MisConfiguredTemplateApp() {
16      super();
17    }
18  
19    /**
20     * {@inheritDoc}
21     * @see org.melati.app.AbstractConfigApp#melatiConfig()
22     */
23    protected MelatiConfig melatiConfig() throws MelatiException {
24      MelatiConfig config = super.melatiConfig();
25  
26        try {
27          config.setTemplateEngine(new NoTemplateEngine());
28        } catch (Exception e) {
29          throw new RuntimeException(e);
30        }
31  
32  
33      return config;
34      
35    }
36  
37  
38  }