Skip to content

Commit 83cc886

Browse files
committed
improve javadoc
1 parent 1edb94f commit 83cc886

File tree

3 files changed

+26
-5
lines changed

3 files changed

+26
-5
lines changed

src/main/java/io/openapiprocessor/api/v2/OpenApiProcessor.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
* plugin) it must implement this interface and have a
1313
* {@code META-INF/services/io.openapiprocessor.api.v1.OpenApiProcessor} property file in the
1414
* resources with the class name of the implementing class.
15-
*
1615
* <p>
1716
* A consumer should be able to provide access to any processor that is found on the class path.
18-
*
17+
* <p>
1918
* The gradle plugin uses the name provided by the api to configure the processor and to provide a
2019
* task to run it. This task will find and run an openapi-processor by using the
2120
* {@code OpenApiProcessor} service interface. By using an interface it does not need an explicit
@@ -26,11 +25,9 @@ public interface OpenApiProcessor {
2625
/**
2726
* The identifying name of the openapi-processor. *Should* be globally unique so a consumer of
2827
* this interface can distinguish between different openapi-processors.
29-
*
3028
* <p>
3129
* It is recommended to return here the last part of the full openapi-processor name. If the
3230
* processor jar name is {@code openapi-processor-spring} the name should be {@code spring}.
33-
* </p>
3431
*
3532
* @return the unique name of the openapi-processor
3633
*/

src/main/java/io/openapiprocessor/api/v2/OpenApiProcessorVersion.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@
55

66
package io.openapiprocessor.api.v2;
77

8+
/**
9+
* Interface to provide (optional) version information of a processor. This must be implemented by
10+
* the same class that implements {@link OpenApiProcessor}.
11+
*/
812
public interface OpenApiProcessorVersion {
913

1014
/**
11-
* The version of this openapi-processor.
15+
* The version of this openapi-processor. E.g. 2023.1
1216
*
1317
* @return the version of this processor
1418
*/

src/main/java/io/openapiprocessor/api/v2/Version.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,28 @@
77

88
import java.time.Instant;
99

10+
/**
11+
* details of a version.
12+
*/
1013
public interface Version {
14+
/**
15+
* the version of this openapi-processor. E.g. 2023.1
16+
*
17+
* @return the version of this processor
18+
*/
1119
String getName();
20+
21+
/**
22+
* the published date of this version.
23+
*
24+
* @return publish date
25+
*/
1226
Instant getPublishedAt();
27+
28+
/**
29+
* the version information.
30+
*
31+
* @return version information.
32+
*/
1333
String getText();
1434
}

0 commit comments

Comments
 (0)