com.anrisoftware.resources.templates.api.TemplateWorkerFactory Maven / Gradle / Ivy
/*
* Copyright 2012-2015 Erwin Müller
*
* This file is part of resources-templates.
*
* resources-templates is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* resources-templates is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with resources-templates. If not, see .
*/
package com.anrisoftware.resources.templates.api;
import java.io.Serializable;
import java.net.URL;
import java.util.Map;
import java.util.Properties;
/**
* Factory to create a new template worker.
*
* @author Erwin Mueller, [email protected]
* @since 1.0
*/
public interface TemplateWorkerFactory {
/**
* Creates a new template worker.
*
* @param templateUrl
* the {@link URL} of the template file.
*
* @param properties
* the {@link Properties} for the template.
*
* @param attributes
* the attributes {@link Map} for the template.
*
* @return the {@link TemplateWorker}.
*
* @since 1.4
*/
TemplateWorker create(URL templateUrl, Properties properties,
Map attributes);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy