public class AnnoyingLibraryManager extends net.byteflux.libby.BukkitLibraryManager implements Annoyable
RuntimeLibrary| Constructor and Description |
|---|
AnnoyingLibraryManager(@NotNull AnnoyingPlugin plugin)
Create a new
AnnoyingLibraryManager for the plugin |
AnnoyingLibraryManager(@NotNull AnnoyingPlugin plugin,
@NotNull java.lang.String directoryName)
Create a new
AnnoyingLibraryManager for the plugin with a custom directory name |
| Modifier and Type | Method and Description |
|---|---|
@NotNull AnnoyingPlugin |
getAnnoyingPlugin()
The
AnnoyingPlugin instance |
@NotNull java.util.Optional<net.byteflux.libby.classloader.IsolatedClassLoader> |
getIsolatedClassLoaderOf(@NotNull RuntimeLibrary library)
Get the
IsolatedClassLoader of a RuntimeLibrary |
boolean |
isLoaded(@NotNull RuntimeLibrary library)
Check if a
RuntimeLibrary is loaded in the server's classpath |
boolean |
isLoadedIsolated(@NotNull RuntimeLibrary library)
Check if a
RuntimeLibrary is loaded in an isolated classloader |
void |
loadLibrary(@NotNull RuntimeLibrary library)
Load a
RuntimeLibrary into the server's classpath |
@NotNull net.byteflux.libby.classloader.IsolatedClassLoader |
loadLibraryIsolated(@NotNull RuntimeLibrary library)
Load a
RuntimeLibrary into an isolated classloader |
public AnnoyingLibraryManager(@NotNull
@NotNull AnnoyingPlugin plugin)
AnnoyingLibraryManager for the pluginplugin - pluginpublic AnnoyingLibraryManager(@NotNull
@NotNull AnnoyingPlugin plugin,
@NotNull
@NotNull java.lang.String directoryName)
AnnoyingLibraryManager for the plugin with a custom directory nameplugin - plugindirectoryName - the name of the directory to store the libraries in@NotNull public @NotNull AnnoyingPlugin getAnnoyingPlugin()
AnnoyableAnnoyingPlugin instancegetAnnoyingPlugin in interface Annoyablepublic void loadLibrary(@NotNull
@NotNull RuntimeLibrary library)
RuntimeLibrary into the server's classpathlibrary - the library to loadloadLibraryIsolated(RuntimeLibrary)@NotNull
public @NotNull net.byteflux.libby.classloader.IsolatedClassLoader loadLibraryIsolated(@NotNull
@NotNull RuntimeLibrary library)
RuntimeLibrary into an isolated classloaderlibrary - the library to loadloadLibrary(RuntimeLibrary)@NotNull
public @NotNull java.util.Optional<net.byteflux.libby.classloader.IsolatedClassLoader> getIsolatedClassLoaderOf(@NotNull
@NotNull RuntimeLibrary library)
IsolatedClassLoader of a RuntimeLibrarylibrary - the library to get the classloader ofpublic boolean isLoaded(@NotNull
@NotNull RuntimeLibrary library)
RuntimeLibrary is loaded in the server's classpathlibrary - the library to checkisLoadedIsolated(RuntimeLibrary)public boolean isLoadedIsolated(@NotNull
@NotNull RuntimeLibrary library)
RuntimeLibrary is loaded in an isolated classloaderlibrary - the library to checkisLoaded(RuntimeLibrary)