-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ObjectManager implements RunnableReloadable ObjectDirector implements RunnableReloadable Added IManagerDirector#isReloading BlobPlugin#blobLibReload won't proceed if BlobPlugin's IManagerDirector is reloading
- Loading branch information
1 parent
df0aa72
commit 231775c
Showing
11 changed files
with
95 additions
and
6 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
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
16 changes: 16 additions & 0 deletions
16
src/main/java/us/mytheria/bloblib/entities/Reloadable.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,16 @@ | ||
package us.mytheria.bloblib.entities; | ||
|
||
public interface Reloadable { | ||
|
||
/** | ||
* Returns whether the Reloadable is reloading. | ||
* | ||
* @return {@code true} if the Reloadable is reloading, {@code false} otherwise. | ||
*/ | ||
boolean isReloading(); | ||
|
||
/** | ||
* Reloads the Reloadable. | ||
*/ | ||
void reload(); | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/us/mytheria/bloblib/entities/RunnableReloadable.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,11 @@ | ||
package us.mytheria.bloblib.entities; | ||
|
||
public interface RunnableReloadable extends Reloadable { | ||
|
||
/** | ||
* Adds a Runnable to be run when the RunnableReloadable is reloaded. | ||
* | ||
* @param runnable The Runnable to run when the RunnableReloadable is reloaded. | ||
*/ | ||
void whenReloaded(Runnable runnable); | ||
} |
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
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