Added some javadocs.
parent
65f022304f
commit
4b34b31928
|
@ -7,6 +7,10 @@ public class PluginRunner {
|
||||||
private static final Logger logger = LoggerFactory.getLogger(PluginRunner.class);
|
private static final Logger logger = LoggerFactory.getLogger(PluginRunner.class);
|
||||||
private final PluginRunnerConfig config;
|
private final PluginRunnerConfig config;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create plugin with the given config
|
||||||
|
* @param config plugin runner config to create with
|
||||||
|
*/
|
||||||
public PluginRunner(PluginRunnerConfig config) {
|
public PluginRunner(PluginRunnerConfig config) {
|
||||||
this.config = config;
|
this.config = config;
|
||||||
}
|
}
|
||||||
|
@ -16,6 +20,9 @@ public class PluginRunner {
|
||||||
.execute();
|
.execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Execute plugin runner
|
||||||
|
*/
|
||||||
public void execute() {
|
public void execute() {
|
||||||
logger.info("Started runner id: {}, name: {}", config.id(), config.name());
|
logger.info("Started runner id: {}, name: {}", config.id(), config.name());
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,16 @@
|
||||||
package pl.polgrabia.demos;
|
package pl.polgrabia.demos;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Plugin runner config
|
||||||
|
*/
|
||||||
public record PluginRunnerConfig(
|
public record PluginRunnerConfig(
|
||||||
|
/**
|
||||||
|
* id of the plugin runner
|
||||||
|
*/
|
||||||
String id,
|
String id,
|
||||||
|
/**
|
||||||
|
* name of the plguin runner
|
||||||
|
*/
|
||||||
String name
|
String name
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue