Class TeamCityClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- jetbrains.buildServer.plugins.classLoaders.TeamCityClassLoader
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
TeamCityPluginClassLoader
public abstract class TeamCityClassLoader extends URLClassLoader
- Author:
- Eugene Petrenko Created: 12.02.2009 16:39:15
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTeamCityClassLoader(ClassLoader parent, boolean delegateToParentFirst)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddJar(File jar)protected ClasscallParentLoadClass(String name)protected ClassdoLoadClass(String name)protected ClassdoLoadClassWithoutParent(String name)Special method to be used withHierarchicalPluginStandaloneClassLoaderImplDoes not disturbs parent classloader.URLgetResource(String name)protected Class<?>loadClass(String name, boolean resolve)-
Methods inherited from class java.net.URLClassLoader
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
-
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Constructor Detail
-
TeamCityClassLoader
protected TeamCityClassLoader(@Nullable ClassLoader parent, boolean delegateToParentFirst)
-
-
Method Detail
-
loadClass
protected final Class<?> loadClass(@NotNull String name, boolean resolve) throws ClassNotFoundException
- Overrides:
loadClassin classClassLoader- Throws:
ClassNotFoundException
-
doLoadClass
@NotNull protected Class doLoadClass(@NotNull String name) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
doLoadClassWithoutParent
@NotNull protected Class doLoadClassWithoutParent(@NotNull String name) throws ClassNotFoundException
Special method to be used withHierarchicalPluginStandaloneClassLoaderImplDoes not disturbs parent classloader.- Throws:
ClassNotFoundException- Since:
- 9.0
-
getResource
@Nullable public URL getResource(String name)
- Overrides:
getResourcein classClassLoader
-
addJar
protected void addJar(@NotNull File jar)
-
-