Class AppStarter.IndexedUrlClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
de.iip_ecosphere.platform.services.spring.loader.AppStarter.IndexedUrlClassLoader
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.plugins.ChildClassLoader,Closeable,AutoCloseable
- Enclosing class:
AppStarter
static class AppStarter.IndexedUrlClassLoader
extends URLClassLoader
implements de.iip_ecosphere.platform.support.plugins.ChildClassLoader
Creates an indexed child-firstclass loader taking into account the first given URL as it contains directly
stored classes/resources.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIndexedUrlClassLoader(String url, URL[] urls, de.oktoflow.platform.tools.lib.loader.LoaderIndex index, ClassLoader parent) Creates an indexed class loader still taking into account the first given URL as it contains directly stored classes/resources. -
Method Summary
Modifier and TypeMethodDescriptionClass<?> findResource(String name) findResources(String name) URL[]getURLs()Methods inherited from class java.net.URLClassLoader
addURL, close, definePackage, getPermissions, getResourceAsStream, newInstance, newInstanceMethods inherited from class java.security.SecureClassLoader
defineClass, defineClassMethods 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, setSignersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.support.plugins.ChildClassLoader
clearAssertionStatus, getResource, getResourceAsStream, getResources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
-
Field Details
-
index
private de.oktoflow.platform.tools.lib.loader.LoaderIndex index -
urls
-
url
-
-
Constructor Details
-
IndexedUrlClassLoader
public IndexedUrlClassLoader(String url, URL[] urls, de.oktoflow.platform.tools.lib.loader.LoaderIndex index, ClassLoader parent) Creates an indexed class loader still taking into account the first given URL as it contains directly stored classes/resources.- Parameters:
url- the URL of the file containing the jarsurls- the original URLs pointing intourlindex- the loader indexparent- the parent class loader
-
-
Method Details
-
getURLs
- Overrides:
getURLsin classURLClassLoader
-
findClass
- Specified by:
findClassin interfacede.iip_ecosphere.platform.support.plugins.ChildClassLoader- Overrides:
findClassin classURLClassLoader- Throws:
ClassNotFoundException
-
findResource
- Overrides:
findResourcein classURLClassLoader
-
findResources
- Overrides:
findResourcesin classURLClassLoader- Throws:
IOException
-