Skip to content

Commit

Permalink
refactor: Add javadoc to class FunctionRegistrationHandler (#3277)
Browse files Browse the repository at this point in the history
  • Loading branch information
tenthe authored Oct 2, 2024
1 parent 6fa47bf commit beada3a
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@

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);
Expand All @@ -36,7 +46,8 @@ public FunctionRegistrationHandler(List<FunctionDefinition> functions) {

@Override
protected void performRequest(StreamPipesClient client) {
client.adminApi().registerFunctions(functions);
client.adminApi()
.registerFunctions(functions);
}

@Override
Expand Down

0 comments on commit beada3a

Please sign in to comment.