public class RestartClassLoader extends URLClassLoader implements SmartClassLoader
ClassLoader
used to support application restarting. Provides parent
last loading for the specified URLs.Constructor and Description |
---|
RestartClassLoader(ClassLoader parent,
URL[] urls)
Create a new
RestartClassLoader instance. |
RestartClassLoader(ClassLoader parent,
URL[] urls,
ClassLoaderFileRepository updatedFiles)
Create a new
RestartClassLoader instance. |
RestartClassLoader(ClassLoader parent,
URL[] urls,
ClassLoaderFileRepository updatedFiles,
org.apache.commons.logging.Log logger)
Create a new
RestartClassLoader instance. |
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
protected Class<?> |
findClass(String name) |
URL |
findResource(String name) |
URL |
getResource(String name) |
Enumeration<URL> |
getResources(String name) |
boolean |
isClassReloadable(Class<?> classType) |
Class<?> |
loadClass(String name,
boolean resolve) |
addURL, close, definePackage, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public RestartClassLoader(ClassLoader parent, URL[] urls)
RestartClassLoader
instance.parent
- the parent classloaderurls
- the urls managed by the classloaderpublic RestartClassLoader(ClassLoader parent, URL[] urls, ClassLoaderFileRepository updatedFiles)
RestartClassLoader
instance.parent
- the parent classloaderupdatedFiles
- any files that have been updated since the JARs referenced in
URLs were created.urls
- the urls managed by the classloaderpublic RestartClassLoader(ClassLoader parent, URL[] urls, ClassLoaderFileRepository updatedFiles, org.apache.commons.logging.Log logger)
RestartClassLoader
instance.parent
- the parent classloaderupdatedFiles
- any files that have been updated since the JARs referenced in
URLs were created.urls
- the urls managed by the classloaderlogger
- the logger used for messagespublic Enumeration<URL> getResources(String name) throws IOException
getResources
in class ClassLoader
IOException
public URL getResource(String name)
getResource
in class ClassLoader
public URL findResource(String name)
findResource
in class URLClassLoader
public Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
protected Class<?> findClass(String name) throws ClassNotFoundException
findClass
in class URLClassLoader
ClassNotFoundException
protected void finalize() throws Throwable
public boolean isClassReloadable(Class<?> classType)
isClassReloadable
in interface SmartClassLoader
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.