All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dk.mada.jaxrs.generator.api.GeneratorService Maven / Gradle / Ivy

package dk.mada.jaxrs.generator.api;

import java.nio.file.Path;
import java.util.Properties;

/**
 * Generator service.
 *
 * Allows decoupling the generator service from the two ways of invoking it (CLI and Gradle).
 */
public interface GeneratorService {
    /**
     * Generate client code.
     *
     * @param context         the context for the generator
     * @param openapiDocument the OpenAPI document
     * @param options         the generator options
     * @param destinationDir  the destination directory
     *
     * @throws dk.mada.jaxrs.generator.api.exceptions.GeneratorBadInputException if the generator failed due to bad input
     * @throws dk.mada.jaxrs.generator.api.exceptions.GeneratorException         if the generator failed for any other
     *                                                                           reason
     */
    void generateClient(ClientContext context, Path openapiDocument, Properties options, Path destinationDir);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy