Package net.sf.laja.TemplateParser

Examples of net.sf.laja.TemplateParser.ITemplateFactoryFactory


  }
 
  public static Template parseStatement(String statement, final TemplateTextWriter templateTextWriter, final Namespaces namespaces, final Classes classes, final GroovyClassLoader groovyClassLoader) {
    final StringSource sourceString = new StringSource("statement");
   
    TemplateParser parser = new TemplateParser(new ITemplateFactoryFactory() {
      public ITemplateFactory getFactory(int phase) {
        return new TemplateFactory(sourceString, templateTextWriter, namespaces, classes, groovyClassLoader);
      }
    });
   
View Full Code Here


  }

  public static Template parseFile(final String filename, final TemplateTextWriter templateTextWriter, final Namespaces namespaces, final Classes classes, final GroovyClassLoader groovyClassLoader) {
    final FileSource sourceFile = new FileSource(filename);
   
    TemplateParser parser = new TemplateParser(new ITemplateFactoryFactory() {
      public ITemplateFactory getFactory(int phase) {
        return new TemplateFactory(sourceFile, templateTextWriter, namespaces, classes, groovyClassLoader);
      }
    });
View Full Code Here

TOP

Related Classes of net.sf.laja.TemplateParser.ITemplateFactoryFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.