Class VelocityServicesGenerator
java.lang.Object
org.codehaus.mojo.servicedocgen.generation.velocity.VelocityServicesGenerator
- All Implemented Interfaces:
ServicesGenerator
Implementation of
ServicesDescriptor based on apache velocity.- Author:
- hohwille
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(ServicesDescriptor descriptor, File outputDirectory, String filename, String openApiUrl) Generates the documentation as output.
-
Constructor Details
-
VelocityServicesGenerator
The constructor.- Parameters:
templatePath- the classpath location where to look for velocity templates.
-
-
Method Details
-
generate
public void generate(ServicesDescriptor descriptor, File outputDirectory, String filename, String openApiUrl) throws IOException Generates the documentation as output.- Specified by:
generatein interfaceServicesGenerator- Parameters:
descriptor- theServicesDescriptorwith the collected meta-data.outputDirectory- thedirectorywhere to write the output to.filename- the name of the file to write the output to.openApiUrl- the url to the OpenApi file- Throws:
IOException- if something goes wrong.
-