This is an automated email from the ASF dual-hosted git repository. markap14 pushed a commit to branch NIFI-15258 in repository https://gitbox.apache.org/repos/asf/nifi-api.git
commit 9e809ade51fa1dd93a738e4be44a0dd716e5c57a Author: Mark Payne <[email protected]> AuthorDate: Thu Feb 5 12:44:09 2026 -0500 NIFI-15557: Allow Connectors to enable a Controller Service using overridden property values (#63) --- .../connector/components/ControllerServiceLifecycle.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/org/apache/nifi/components/connector/components/ControllerServiceLifecycle.java b/src/main/java/org/apache/nifi/components/connector/components/ControllerServiceLifecycle.java index 230391a..eca97b4 100644 --- a/src/main/java/org/apache/nifi/components/connector/components/ControllerServiceLifecycle.java +++ b/src/main/java/org/apache/nifi/components/connector/components/ControllerServiceLifecycle.java @@ -17,6 +17,7 @@ package org.apache.nifi.components.connector.components; +import java.util.Map; import java.util.concurrent.CompletableFuture; public interface ControllerServiceLifecycle { @@ -25,6 +26,16 @@ public interface ControllerServiceLifecycle { CompletableFuture<Void> enable(); + /** + * Enables the Controller Service using the provided property value overrides. The overrides are merged with + * the currently configured property values, with the overrides taking precedence. This allows enabling a service + * with temporary property value overrides without modifying the service's configuration. + * + * @param propertyValueOverrides the property value overrides to apply when enabling the service + * @return a CompletableFuture that completes when the service has been enabled + */ + CompletableFuture<Void> enable(Map<String, String> propertyValueOverrides); + CompletableFuture<Void> disable(); }
