aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDecebal Suiu <decebal.suiu@gmail.com>2024-12-23 22:21:11 +0200
committerDecebal Suiu <decebal.suiu@gmail.com>2024-12-23 22:21:11 +0200
commit28bb6ef8ecbfa611a81dfec53934b1183f7148f7 (patch)
tree4152ef4770bca86ef5203c7c07440ec7d597b4b3
parent8b08d2e76f3ded83f2c918a54e63e8618febecba (diff)
downloadpf4j-28bb6ef8ecbfa611a81dfec53934b1183f7148f7.tar.gz
pf4j-28bb6ef8ecbfa611a81dfec53934b1183f7148f7.zip
Fluent setters
-rw-r--r--pf4j/src/main/java/org/pf4j/DefaultPluginDescriptor.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/pf4j/src/main/java/org/pf4j/DefaultPluginDescriptor.java b/pf4j/src/main/java/org/pf4j/DefaultPluginDescriptor.java
index e8ff380..db74238 100644
--- a/pf4j/src/main/java/org/pf4j/DefaultPluginDescriptor.java
+++ b/pf4j/src/main/java/org/pf4j/DefaultPluginDescriptor.java
@@ -134,13 +134,13 @@ public class DefaultPluginDescriptor implements PluginDescriptor {
return this;
}
- protected PluginDescriptor setPluginDescription(String pluginDescription) {
+ protected DefaultPluginDescriptor setPluginDescription(String pluginDescription) {
this.pluginDescription = pluginDescription;
return this;
}
- protected PluginDescriptor setPluginClass(String pluginClassName) {
+ protected DefaultPluginDescriptor setPluginClass(String pluginClassName) {
this.pluginClass = pluginClassName;
return this;
@@ -152,19 +152,19 @@ public class DefaultPluginDescriptor implements PluginDescriptor {
return this;
}
- protected PluginDescriptor setProvider(String provider) {
+ protected DefaultPluginDescriptor setProvider(String provider) {
this.provider = provider;
return this;
}
- protected PluginDescriptor setRequires(String requires) {
+ protected DefaultPluginDescriptor setRequires(String requires) {
this.requires = requires;
return this;
}
- protected PluginDescriptor setDependencies(String dependencies) {
+ protected DefaultPluginDescriptor setDependencies(String dependencies) {
this.dependencies = new ArrayList<>();
if (dependencies != null) {
@@ -177,7 +177,7 @@ public class DefaultPluginDescriptor implements PluginDescriptor {
return this;
}
- protected PluginDescriptor setDependencies(String... dependencies) {
+ protected DefaultPluginDescriptor setDependencies(String... dependencies) {
for (String dependency : dependencies) {
dependency = dependency.trim();
if (!dependency.isEmpty()) {
@@ -188,7 +188,7 @@ public class DefaultPluginDescriptor implements PluginDescriptor {
return this;
}
- public PluginDescriptor setLicense(String license) {
+ public DefaultPluginDescriptor setLicense(String license) {
this.license = license;
return this;