public class BukkitImplLoader
extends java.lang.Object
Constructor and Description |
---|
BukkitImplLoader()
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addFromJar(java.io.File file)
Search the given JAR for candidate implementations.
|
void |
addFromPath(java.lang.ClassLoader classLoader)
Search for classes stored as separate files available via the given
class loader.
|
BukkitImplAdapter |
loadAdapter()
Iterate through the list of candidates and load an adapter.
|
public void addFromJar(java.io.File file) throws java.io.IOException
file
- the filejava.io.IOException
- thrown on I/O errorpublic void addFromPath(java.lang.ClassLoader classLoader) throws java.io.IOException
classLoader
- the class loaderjava.io.IOException
- thrown on errorpublic BukkitImplAdapter loadAdapter() throws AdapterLoadException
AdapterLoadException
- thrown if no adapter could be found