com.anrisoftware.resources.templates.api.BundlesMap 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.util.ResourceBundle;
/**
* A map of template resources for each resource bundle.
*
* Lazy create a new template resources map for a new resource bundle.
*
* @author Erwin Mueller, [email protected]
* @since 1.0
*/
public interface BundlesMap {
/**
* Returns the template resources for the specified resource bundle.
*
* If no template resources are found for the specified resource bundle a
* new templates map is created.
*
* @param bundle
* the {@link ResourceBundle}.
*
* @return the {@link TemplatesMap} for the resource bundle.
*/
TemplatesMap getTemplates(ResourceBundle bundle);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy