Commit e21db13e authored by Julien Sabatier's avatar Julien Sabatier

Adapt GeoServerTemplateLoader to new constructor parameters

parent 5894408d
......@@ -17,6 +17,7 @@ import java.util.List;
import java.util.logging.Logger;
import org.apache.commons.io.IOUtils;
import org.geoserver.catalog.ResourceInfo;
import org.geoserver.platform.GeoServerExtensions;
import org.geoserver.platform.GeoServerResourceLoader;
import org.geoserver.platform.resource.Paths;
import org.geoserver.platform.resource.Resource;
......@@ -144,8 +145,9 @@ public class TemplateManager implements Serializable {
@Deprecated
public static GeoServerTemplateLoader getGeoServerTemplateLoader() throws IOException {
GeoServerResourceLoader resources = GeoServerExtensions.bean(GeoServerResourceLoader.class);
GeoServerTemplateLoader templateLoader =
new GeoServerTemplateLoader(HTMLFeatureInfoOutputFormat.class);
new GeoServerTemplateLoader(HTMLFeatureInfoOutputFormat.class, resources);
// using HTMLFeatureInfoOutputFormat as caller to allow detection of the templates in
// classpath, if no file is found
return templateLoader;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment