public class DirectoryClassLoader extends URLClassLoader
Modifier and Type | Method and Description |
---|---|
static DirectoryClassLoader |
getInstance(File dir)
Returns an instance of DirectoryClassLoader configured to load .jar
files from the given directory.
|
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public static DirectoryClassLoader getInstance(File dir) throws GuacamoleException
dir
- The directory from which .jar files should be read.GuacamoleException
- If the given file is not a directory, or the contents of the given
directory cannot be read.Copyright © 2017. All rights reserved.