public class ExtensionsClassLoader
extends java.lang.ClassLoader
| Constructor and Description | 
|---|
| ExtensionsClassLoader(java.lang.ClassLoader parent,
                     java.security.ProtectionDomain protectionDomain,
                     java.lang.String[] extensionJarsAndDlls,
                     java.lang.String[] applicationPackages)Creates a class loader. | 
| ExtensionsClassLoader(java.lang.ClassLoader parent,
                     java.security.ProtectionDomain protectionDomain,
                     java.lang.String[] extensionJarAndDllResources,
                     java.net.URL[] extensionJarAndDllUrls,
                     java.lang.String[] applicationPackages,
                     java.io.File cacheFolder,
                     java.lang.String cachedFilesPrefix)Creates a class loader. | 
| ExtensionsClassLoader(java.lang.ClassLoader parent,
                     java.security.ProtectionDomain protectionDomain,
                     java.lang.String[] extensionJarAndDllResources,
                     java.net.URL[] extensionJarAndDllUrls,
                     java.lang.String[] applicationPackages,
                     java.io.File cacheFolder,
                     java.lang.String cachedFilesPrefix,
                     boolean cacheOnlyJars)Creates a class loader. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | copyInputStreamToFile(java.io.InputStream input,
                     java.io.File file)Copies the  inputcontent to the given file. | 
| protected java.lang.Class | findClass(java.lang.String name)Finds and defines the given class among the extension JARs
 given in constructor, then among resources. | 
| protected java.lang.String | findLibrary(java.lang.String libname)Returns the library path of an extension DLL. | 
| protected java.net.URL | findResource(java.lang.String name)Returns the URL of the given resource searching first if it exists among
 the extension JARs given in constructor. | 
| protected java.lang.Class | loadClass(java.lang.String name,
         boolean resolve)Loads a class with this class loader if its package belongs to  applicationPackagesgiven in constructor. | 
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLoadedClass, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic ExtensionsClassLoader(java.lang.ClassLoader parent,
                             java.security.ProtectionDomain protectionDomain,
                             java.lang.String[] extensionJarsAndDlls,
                             java.lang.String[] applicationPackages)
extensionJarsAndDlls accessed as resources
 as classpath and libclasspath elements with a higher priority than the ones of default classpath,
 and will load itself all the classes belonging to packages of applicationPackages.
 No cache will be used.public ExtensionsClassLoader(java.lang.ClassLoader parent,
                             java.security.ProtectionDomain protectionDomain,
                             java.lang.String[] extensionJarAndDllResources,
                             java.net.URL[] extensionJarAndDllUrls,
                             java.lang.String[] applicationPackages,
                             java.io.File cacheFolder,
                             java.lang.String cachedFilesPrefix)
extensionJarAndDllResources
 and extensionJarAndDllUrls as classpath and libclasspath elements with a higher priority
 than the ones of default classpath, and will load itself all the classes belonging to packages of
 applicationPackages.extensionJarAndDllResources and extensionJarAndDllUrls will be stored
 in the given cache folder if possible, each file being prefixed by cachedFilesPrefix.public ExtensionsClassLoader(java.lang.ClassLoader parent,
                             java.security.ProtectionDomain protectionDomain,
                             java.lang.String[] extensionJarAndDllResources,
                             java.net.URL[] extensionJarAndDllUrls,
                             java.lang.String[] applicationPackages,
                             java.io.File cacheFolder,
                             java.lang.String cachedFilesPrefix,
                             boolean cacheOnlyJars)
extensionJarAndDllResources
 and extensionJarAndDllUrls as classpath and libclasspath elements with a higher priority
 than the ones of default classpath, and will load itself all the classes belonging to packages of
 applicationPackages.extensionJarAndDllResources and extensionJarAndDllUrls will be stored
 in the given cache folder if possible, each file being prefixed by cachedFilesPrefix.public void copyInputStreamToFile(java.io.InputStream input,
                                  java.io.File file)
                           throws java.io.FileNotFoundException,
                                  java.io.IOException
input content to the given file.java.io.FileNotFoundExceptionjava.io.IOExceptionprotected java.lang.Class findClass(java.lang.String name)
                             throws java.lang.ClassNotFoundException
findClass in class java.lang.ClassLoaderjava.lang.ClassNotFoundExceptionprotected java.lang.String findLibrary(java.lang.String libname)
findLibrary in class java.lang.ClassLoaderprotected java.net.URL findResource(java.lang.String name)
findResource in class java.lang.ClassLoaderprotected java.lang.Class loadClass(java.lang.String name,
                                    boolean resolve)
                             throws java.lang.ClassNotFoundException
applicationPackages
 given in constructor.loadClass in class java.lang.ClassLoaderjava.lang.ClassNotFoundException
                        
© Copyright 2024 Space Mushrooms
                            
Distributed under GNU General Public License