diff --git a/2024/09/plugin_demo1/plugin-demo1-core/src/main/java/pl/polgrabia/demos/PluginRunner.java b/2024/09/plugin_demo1/plugin-demo1-core/src/main/java/pl/polgrabia/demos/PluginRunner.java index 337fed7..286ca04 100644 --- a/2024/09/plugin_demo1/plugin-demo1-core/src/main/java/pl/polgrabia/demos/PluginRunner.java +++ b/2024/09/plugin_demo1/plugin-demo1-core/src/main/java/pl/polgrabia/demos/PluginRunner.java @@ -7,6 +7,10 @@ public class PluginRunner { private static final Logger logger = LoggerFactory.getLogger(PluginRunner.class); private final PluginRunnerConfig config; + /** + * Create plugin with the given config + * @param config plugin runner config to create with + */ public PluginRunner(PluginRunnerConfig config) { this.config = config; } @@ -16,6 +20,9 @@ public class PluginRunner { .execute(); } + /** + * Execute plugin runner + */ public void execute() { logger.info("Started runner id: {}, name: {}", config.id(), config.name()); } diff --git a/2024/09/plugin_demo1/plugin-demo1-core/src/main/java/pl/polgrabia/demos/PluginRunnerConfig.java b/2024/09/plugin_demo1/plugin-demo1-core/src/main/java/pl/polgrabia/demos/PluginRunnerConfig.java index 7d55b4b..7a2f3f0 100644 --- a/2024/09/plugin_demo1/plugin-demo1-core/src/main/java/pl/polgrabia/demos/PluginRunnerConfig.java +++ b/2024/09/plugin_demo1/plugin-demo1-core/src/main/java/pl/polgrabia/demos/PluginRunnerConfig.java @@ -1,7 +1,16 @@ package pl.polgrabia.demos; +/** + * Plugin runner config + */ public record PluginRunnerConfig( + /** + * id of the plugin runner + */ String id, + /** + * name of the plguin runner + */ String name ) {