public class ResourceDataLoader extends Object implements fmpp.tdd.DataLoader
DataLoader
for the fmpp/freemarker codegenerator passing existing
resources to a ResourceBasedDataLoader
for further analysis. The
resource paths as defined by Class.getResourceAsStream(String)
are
expected as input parameters in the arguments list of
load(Engine, List)
.Constructor and Description |
---|
ResourceDataLoader(ResourceBasedDataLoader templateLoader) |
Modifier and Type | Method and Description |
---|---|
freemarker.template.SimpleSequence |
load(fmpp.Engine engine,
List args) |
static URL |
loadResource(fmpp.Engine engine,
String resourceName) |
public ResourceDataLoader(ResourceBasedDataLoader templateLoader)
public freemarker.template.SimpleSequence load(fmpp.Engine engine, List args) throws Exception
load
in interface fmpp.tdd.DataLoader
Exception
public static URL loadResource(fmpp.Engine engine, String resourceName) throws URISyntaxException, MalformedURLException
Copyright © 2024. All rights reserved.