Package io.openapiprocessor.api.v1
Interface OpenApiProcessor
-
public interface OpenApiProcessorTo make an openapi-processor available to a consumer (for example the openapi-processor-gradle plugin) it must implement this interface and have aMETA-INF/services/io.openapiprocessor.api.v1.OpenApiProcessorproperty file in the resources with the class name of the implementing class.A consumer should be able to provide access to any processor that is found on the class path. The gradle plugin uses the name provided by the api to configure the processor and to provide a task to run it. This task will find and run an openapi-processor by using the
OpenApiProcessorservice interface. By using an interface it does not need an explicit dependency on a processor.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetName()The identifying name of the openapi-processor.voidrun(java.util.Map<java.lang.String,?> options)Runs the openapi-processor with the given options.
-
-
-
Method Detail
-
getName
java.lang.String getName()
The identifying name of the openapi-processor. *Should* be globally unique so a consumer of this interface can distinguish between different openapi-processors.It is recommended to return here the last part of the full openapi-processor name. If the processor jar name is
openapi-processor-springthe name should bespring.- Returns:
- the unique name of the openapi-processor
-
run
void run(java.util.Map<java.lang.String,?> options)
Runs the openapi-processor with the given options. The options are key value pairs. Keys are of typeStringand values are of any type. A property hierarchy is possible by usingMaps as value.- Parameters:
options- the openapi-processor configuration
-
-