Package org.springmodules.template

Examples of org.springmodules.template.TemplateCreationException


        try {
            Reader reader = new InputStreamReader(resource.getInputStream());
            String name = resource.getFilename();
            return new FreemarkerTemplate(createFreemarkerTemplate(name, reader, configuration));
        } catch (IOException ioe) {
            throw new TemplateCreationException(
                "Could not create freemarker template from resource '" + resource.getDescription() + "'", ioe);
        }
    }
View Full Code Here


    public Template createTemplate(Resource resource, String encoding) {
        groovy.text.Template template = null;
        try {
            template = templateEngine.createTemplate(new InputStreamReader(resource.getInputStream()));
        } catch (ClassNotFoundException cnfe) {
            throw new TemplateCreationException("Could not create groovy template from resource '" +
                resource.getDescription() + "'", cnfe);
        } catch (IOException ioe) {
            throw new TemplateCreationException("Could not create groovy template from resource '" +
                resource.getDescription() + "'", ioe);
        }
        return new GroovyTemplate(template);
    }
View Full Code Here

        try {
            Reader reader = new InputStreamReader(resource.getInputStream());
            String name = resource.getFilename();
            return new FreemarkerTemplate(createFreemarkerTemplate(name, reader, configuration));
        } catch (IOException ioe) {
            throw new TemplateCreationException(
                "Could not create freemarker template from resource '" + resource.getDescription() + "'", ioe);
        }
    }
View Full Code Here

TOP

Related Classes of org.springmodules.template.TemplateCreationException

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.