public class VelocityServicesGenerator extends Object implements ServicesGenerator
ServicesDescriptor
based on apache velocity.Constructor and Description |
---|
VelocityServicesGenerator(String templatePath)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
generate(ServicesDescriptor descriptor,
File outputDirectory,
String filename,
String openApiUrl)
Generates the documentation as output.
|
public VelocityServicesGenerator(String templatePath)
templatePath
- the classpath location where to look for velocity templates.public void generate(ServicesDescriptor descriptor, File outputDirectory, String filename, String openApiUrl) throws IOException
generate
in interface ServicesGenerator
descriptor
- the ServicesDescriptor
with the collected meta-data.outputDirectory
- the directory
where to write the output to.filename
- the name of the file to write the output to.openApiUrl
- the url to the OpenApi fileIOException
- if something goes wrong.Copyright © 2015–2021 MojoHaus. All rights reserved.