Package com.basiscomponents.util
Class JarLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- com.basiscomponents.util.JarLoader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class JarLoader extends URLClassLoader
This class implements a ClassLoader that allows the dynamic addition of JAR files You can then obtain a reference to the class by cl.LoadClass and use the newInstance() method of the class object to call the default constructor.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFile(String path)
-
Methods inherited from class java.net.URLClassLoader
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
-
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Constructor Detail
-
JarLoader
public JarLoader(URL[] urls)
-
JarLoader
public JarLoader()
-
-
Method Detail
-
addFile
public void addFile(String path) throws MalformedURLException, FileNotFoundException
-
-