mimaison commented on code in PR #21330:
URL: https://github.com/apache/kafka/pull/21330#discussion_r2882932149
##########
connect/api/src/main/java/org/apache/kafka/connect/rest/ConnectRestExtension.java:
##########
@@ -60,4 +61,24 @@ public interface ConnectRestExtension extends Configurable,
Versioned, Closeable
* ConnectRestExtensionContext#configurable()}
*/
void register(ConnectRestExtensionContext restPluginContext);
+
+ /**
+ * Configuration specification for this rest extension.
+ *
+ * @return the configuration definition for this rest extension; never null
+ */
+ @Override
+ default ConfigDef config() {
+ return new ConfigDef();
+ }
+
+ /**
+ * Get the version of this component.
+ *
+ * @return the version, formatted as a String. The version may not be
{@code null} or empty.
+ */
+ @Override
+ default String version() {
+ return "undefined";
+ }
Review Comment:
We don't need this default method? `ConnectRestExtension` already
implemented `Versioned`, so all implementation should already define it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]