Added some javadocs.
parent
65f022304f
commit
4b34b31928
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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
|
||||
) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue