Package org.commontemplate.standard.loader

Examples of org.commontemplate.standard.loader.ClasspathSourceLoader


  public CommonTemplateServletSerializer() {
    try {
      ServletContext servletContext = ActionServletContext.getContext().getServletContext();
          Properties properties = PropertiesUtils.getProperties(getPropertiesName());
          ConfigurationSettings config = PropertiesConfigurationLoader.loadConfiguration(properties, new ServletClassResourceLoader(servletContext), null);
          config.setSourceLoader(new ClasspathSourceLoader());
          engine = new Engine(config);
    } catch (RuntimeException e) {
      throw e;
    } catch (Exception e) {
      throw new RuntimeException(e.getMessage(), e);
View Full Code Here

TOP

Related Classes of org.commontemplate.standard.loader.ClasspathSourceLoader

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.