-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework bolt so uncertain operations like creating plugins return Opti…
…onal
- Loading branch information
1 parent
e965435
commit 03489ba
Showing
33 changed files
with
268 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...n/java/org/peakaboo/framework/bolt/plugin/config/container/BoltBrokenConfigfileIssue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.peakaboo.framework.bolt.plugin.config.container; | ||
|
||
import org.peakaboo.framework.bolt.plugin.config.BoltConfigPlugin; | ||
import org.peakaboo.framework.bolt.plugin.core.container.BoltContainer; | ||
import org.peakaboo.framework.bolt.plugin.core.issue.BoltBrokenContainerIssue; | ||
import org.peakaboo.framework.bolt.plugin.java.BoltJavaPlugin; | ||
import org.peakaboo.framework.bolt.plugin.java.container.BoltJarContainer; | ||
|
||
public class BoltBrokenConfigfileIssue<T extends BoltConfigPlugin> extends BoltBrokenContainerIssue<T> { | ||
|
||
private String message; | ||
|
||
public BoltBrokenConfigfileIssue(BoltConfigContainer<T> container, String message) { | ||
super(container); | ||
this.message = message; | ||
} | ||
|
||
@Override | ||
public String title() { | ||
return "Broken Configfile Container"; | ||
} | ||
|
||
@Override | ||
public String description() { | ||
return "Could not read plugin configfile " + shortSource() + ": " + message; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.