This is an automated email from the ASF dual-hosted git repository. zehnder pushed a commit to branch hotfix-add-documentation-to-function-registration-handler in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit 6c5217e5c8f20b7ce7e38a566bca332467538d9b Author: Philipp Zehnder <[email protected]> AuthorDate: Tue Oct 1 14:10:24 2024 +0200 refactor: Add javadoc to class FunctionRegistrationHandler --- .../extensions/function/FunctionRegistrationHandler.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/streampipes-service-extensions/src/main/java/org/apache/streampipes/service/extensions/function/FunctionRegistrationHandler.java b/streampipes-service-extensions/src/main/java/org/apache/streampipes/service/extensions/function/FunctionRegistrationHandler.java index 04f1f370c4..8e17da40dd 100644 --- a/streampipes-service-extensions/src/main/java/org/apache/streampipes/service/extensions/function/FunctionRegistrationHandler.java +++ b/streampipes-service-extensions/src/main/java/org/apache/streampipes/service/extensions/function/FunctionRegistrationHandler.java @@ -26,6 +26,16 @@ import org.slf4j.LoggerFactory; import java.util.List; +/** + * The {@code FunctionRegistrationHandler} class is responsible for registering + * a list of functions with the StreamPipes backend system. + * + * <p>Note: This class only handles the registration of the functions in the backend. + * The actual execution of the registered functions occurs in the extension service. + * + * <p>Once the registration is successful, a log entry is created to indicate + * the completion of the process. + */ public class FunctionRegistrationHandler extends RegistrationHandler { private static final Logger LOG = LoggerFactory.getLogger(FunctionRegistrationHandler.class); @@ -36,7 +46,8 @@ public class FunctionRegistrationHandler extends RegistrationHandler { @Override protected void performRequest(StreamPipesClient client) { - client.adminApi().registerFunctions(functions); + client.adminApi() + .registerFunctions(functions); } @Override
