类 RestartClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.springframework.boot.devtools.restart.classloader.RestartClassLoader
- 所有已实现的接口:
Closeable
,AutoCloseable
,SmartClassLoader
Disposable
ClassLoader
used to support application restarting. Provides parent
last loading for the specified URLs.- 从以下版本开始:
- 1.3.0
- 作者:
- Andy Clement, Phillip Webb
-
构造器概要
构造器构造器说明RestartClassLoader
(ClassLoader parent, URL[] urls) Create a newRestartClassLoader
instance.RestartClassLoader
(ClassLoader parent, URL[] urls, ClassLoaderFileRepository updatedFiles) Create a newRestartClassLoader
instance. -
方法概要
修饰符和类型方法说明protected Class
<?> findResource
(String name) getResource
(String name) getResources
(String name) boolean
isClassReloadable
(Class<?> classType) Class
<?> Class
<?> publicDefineClass
(String name, byte[] b, ProtectionDomain protectionDomain) 从类继承的方法 java.net.URLClassLoader
addURL, close, definePackage, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
从类继承的方法 java.security.SecureClassLoader
defineClass, defineClass
从类继承的方法 java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, 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, setSigners
-
构造器详细资料
-
RestartClassLoader
Create a newRestartClassLoader
instance.- 参数:
parent
- the parent classloaderurls
- the urls managed by the classloader
-
RestartClassLoader
Create a newRestartClassLoader
instance.- 参数:
parent
- the parent classloaderurls
- the urls managed by the classloaderupdatedFiles
- any files that have been updated since the JARs referenced in URLs were created.
-
-
方法详细资料
-
getResources
- 覆盖:
getResources
在类中ClassLoader
- 抛出:
IOException
-
getResource
- 覆盖:
getResource
在类中ClassLoader
-
findResource
- 覆盖:
findResource
在类中URLClassLoader
-
loadClass
- 覆盖:
loadClass
在类中ClassLoader
- 抛出:
ClassNotFoundException
-
findClass
- 覆盖:
findClass
在类中URLClassLoader
- 抛出:
ClassNotFoundException
-
publicDefineClass
- 指定者:
publicDefineClass
在接口中SmartClassLoader
-
getOriginalClassLoader
- 指定者:
getOriginalClassLoader
在接口中SmartClassLoader
-
isClassReloadable
- 指定者:
isClassReloadable
在接口中SmartClassLoader
-