Class AppStarter.ChildLaunchedURLClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.springframework.boot.loader.LaunchedURLClassLoader
de.iip_ecosphere.platform.services.spring.loader.AppStarter.ChildLaunchedURLClassLoader
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.plugins.ChildClassLoader,Closeable,AutoCloseable
- Enclosing class:
AppStarter
static class AppStarter.ChildLaunchedURLClassLoader
extends org.springframework.boot.loader.LaunchedURLClassLoader
implements de.iip_ecosphere.platform.support.plugins.ChildClassLoader
A delegating child classloader to make internal methods accessible.
- Author:
- Stackoverflow
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate de.iip_ecosphere.platform.support.plugins.FindClassClassLoader -
Constructor Summary
ConstructorsConstructorDescriptionChildLaunchedURLClassLoader(boolean exploded, org.springframework.boot.loader.archive.Archive rootArchive, URL[] urls, ClassLoader realParent) Creates an instance with delegation to the real parent class loader. -
Method Summary
Modifier and TypeMethodDescriptionprivate URLcomputeResource(String name) Computes the value ofgetResource(String)if not already known.Class<?> Class<?> findClassIntern(String name) Finds a class (no caching).getResource(String name) getResources(String name) Methods inherited from class org.springframework.boot.loader.LaunchedURLClassLoader
clearCache, definePackage, definePackage, findResource, findResources, loadClassMethods inherited from class java.net.URLClassLoader
addURL, close, getPermissions, getResourceAsStream, getURLs, newInstance, newInstanceMethods inherited from class java.security.SecureClassLoader
defineClass, defineClassMethods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, 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, getResourceAsStream, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
-
Field Details
-
realParent
private de.iip_ecosphere.platform.support.plugins.FindClassClassLoader realParent -
resourceIndex
-
resourcesIndex
-
-
Constructor Details
-
ChildLaunchedURLClassLoader
public ChildLaunchedURLClassLoader(boolean exploded, org.springframework.boot.loader.archive.Archive rootArchive, URL[] urls, ClassLoader realParent) Creates an instance with delegation to the real parent class loader.- Parameters:
urls- the URLs to load classes fromrealParent- the real parent class loader
-
-
Method Details
-
getResource
- Specified by:
getResourcein interfacede.iip_ecosphere.platform.support.plugins.ChildClassLoader- Overrides:
getResourcein classClassLoader
-
computeResource
Computes the value ofgetResource(String)if not already known.- Parameters:
name- the name of the resource- Returns:
- the resource, may be null
-
getResources
- Specified by:
getResourcesin interfacede.iip_ecosphere.platform.support.plugins.ChildClassLoader- Overrides:
getResourcesin classClassLoader- Throws:
IOException
-
findClass
- Specified by:
findClassin interfacede.iip_ecosphere.platform.support.plugins.ChildClassLoader- Overrides:
findClassin classURLClassLoader- Throws:
ClassNotFoundException
-
findClassIntern
Finds a class (no caching).- Parameters:
name- the qualified class name- Returns:
- the class object
- Throws:
ClassNotFoundException- if the class cannot be found
-