
pluginloader.PluginLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-plugins Show documentation
Show all versions of java-plugins Show documentation
Library for adding plugin support to your java application
The newest version!
package pluginloader;
import pluginloader.load.PluginClassLoader;
import pluginloader.load.PluginCompiler;
import pluginloader.load.SourceCodeParser;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.jar.JarEntry;
import java.util.jar.JarInputStream;
import java.util.stream.Collectors;
/**
* This class loads plugins and instantiates them
*/
public class PluginLoader {
public static class LoadingException extends Exception{
public LoadingException(String message) {
super(message);
}
public LoadingException(Throwable cause) {
super(cause);
}
}
public static class WrongFileFormatException extends LoadingException{
public WrongFileFormatException(String message) {
super(message);
}
public WrongFileFormatException(Throwable cause) {
super(cause);
}
}
public
© 2015 - 2025 Weber Informatics LLC | Privacy Policy