Package de.hybris.bootstrap.loader
Class PlatformInPlaceClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- de.hybris.bootstrap.loader.YURLClassLoader
-
- de.hybris.bootstrap.loader.PlatformInPlaceClassLoader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class PlatformInPlaceClassLoader extends YURLClassLoader
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.bootstrap.loader.YURLClassLoader
YURLClassLoader.TYPE
-
-
Constructor Summary
Constructors Constructor Description PlatformInPlaceClassLoader(PlatformConfig platformConfig, java.lang.String additionalClasspath, java.lang.ClassLoader parent, boolean noteAboutStartup)PlatformInPlaceClassLoader(PlatformConfig platformConfig, java.lang.String additionalClasspath, java.lang.ClassLoader parent, boolean noteAboutStartup, boolean isForWeb)PlatformInPlaceClassLoader(java.lang.String platformHome, java.lang.String additionalClasspath, java.lang.ClassLoader parent, boolean noteAboutStartup)PlatformInPlaceClassLoader(java.lang.String platformHome, java.lang.String additionalClasspath, java.lang.ClassLoader parent, boolean noteAboutStartup, boolean isForWeb)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClassLoaderMetricRegistrygetClassloaderMetrics()java.util.List<java.net.URL>getInPlaceURLs()java.net.URL[]getInPlaceURLs(PlatformConfig config, java.lang.String additionalClasspath)java.net.URL[]getInPlaceURLs(java.lang.String platformHome, java.lang.String additionalClasspath)protected java.lang.Class<?>loadClass(java.lang.String name, boolean resolve)overridden to maintain a list of classes that are loaded by this (or a child) Classloader to be able to clear references of this classes (during stop() ) In addition to that we hold a list of ALL loaded classes as a cache.-
Methods inherited from class de.hybris.bootstrap.loader.YURLClassLoader
addClassPathURLs, buildURL, clearAllReferences, findClass, findResource, start, stop
-
Methods inherited from class java.net.URLClassLoader
addURL, close, definePackage, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
-
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, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Constructor Detail
-
PlatformInPlaceClassLoader
public PlatformInPlaceClassLoader(java.lang.String platformHome, java.lang.String additionalClasspath, java.lang.ClassLoader parent, boolean noteAboutStartup)
-
PlatformInPlaceClassLoader
public PlatformInPlaceClassLoader(java.lang.String platformHome, java.lang.String additionalClasspath, java.lang.ClassLoader parent, boolean noteAboutStartup, boolean isForWeb)
-
PlatformInPlaceClassLoader
public PlatformInPlaceClassLoader(PlatformConfig platformConfig, java.lang.String additionalClasspath, java.lang.ClassLoader parent, boolean noteAboutStartup)
-
PlatformInPlaceClassLoader
public PlatformInPlaceClassLoader(PlatformConfig platformConfig, java.lang.String additionalClasspath, java.lang.ClassLoader parent, boolean noteAboutStartup, boolean isForWeb)
-
-
Method Detail
-
loadClass
protected java.lang.Class<?> loadClass(java.lang.String name, boolean resolve) throws java.lang.ClassNotFoundExceptionDescription copied from class:YURLClassLoaderoverridden to maintain a list of classes that are loaded by this (or a child) Classloader to be able to clear references of this classes (during stop() ) In addition to that we hold a list of ALL loaded classes as a cache.- Overrides:
loadClassin classYURLClassLoader- Throws:
java.lang.ClassNotFoundException
-
getInPlaceURLs
public final java.net.URL[] getInPlaceURLs(java.lang.String platformHome, java.lang.String additionalClasspath)
-
getInPlaceURLs
public final java.net.URL[] getInPlaceURLs(PlatformConfig config, java.lang.String additionalClasspath)
-
getClassloaderMetrics
public static ClassLoaderMetricRegistry getClassloaderMetrics()
-
getInPlaceURLs
public java.util.List<java.net.URL> getInPlaceURLs()
-
-