类 ClassLoaderFiles
java.lang.Object
org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles
- 所有已实现的接口:
Serializable
,ClassLoaderFileRepository
ClassLoaderFileRepository
that maintains a collection of
ClassLoaderFile
items grouped by source directories.- 从以下版本开始:
- 1.3.0
- 作者:
- Phillip Webb
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static class
An individual source directory that is being managed by the collection. -
字段概要
从接口继承的字段 org.springframework.boot.devtools.restart.classloader.ClassLoaderFileRepository
NONE
-
构造器概要
构造器构造器说明Create a newClassLoaderFiles
instance.ClassLoaderFiles
(ClassLoaderFiles classLoaderFiles) Create a newClassLoaderFiles
instance. -
方法概要
修饰符和类型方法说明void
addAll
(ClassLoaderFiles files) Add all elements items from the specifiedClassLoaderFiles
to this instance.void
addFile
(String sourceDirectory, String name, ClassLoaderFile file) Add a singleClassLoaderFile
to the collection.void
addFile
(String name, ClassLoaderFile file) Add a singleClassLoaderFile
to the collection.Return aClassLoaderFile
for the given name ornull
if no file is contained in this collection.protected final ClassLoaderFiles.SourceDirectory
Get or create aClassLoaderFiles.SourceDirectory
with the given name.Return allSourceDirectories
that have been added to the collection.int
size()
Return the size of the collection.
-
构造器详细资料
-
ClassLoaderFiles
public ClassLoaderFiles()Create a newClassLoaderFiles
instance. -
ClassLoaderFiles
Create a newClassLoaderFiles
instance.- 参数:
classLoaderFiles
- the source classloader files.
-
-
方法详细资料
-
addAll
Add all elements items from the specifiedClassLoaderFiles
to this instance.- 参数:
files
- the files to add
-
addFile
Add a singleClassLoaderFile
to the collection.- 参数:
name
- the name of the filefile
- the file to add
-
addFile
Add a singleClassLoaderFile
to the collection.- 参数:
sourceDirectory
- the source directory of the filename
- the name of the filefile
- the file to add
-
getOrCreateSourceDirectory
Get or create aClassLoaderFiles.SourceDirectory
with the given name.- 参数:
name
- the name of the directory- 返回:
- an existing or newly added
ClassLoaderFiles.SourceDirectory
-
getSourceDirectories
Return allSourceDirectories
that have been added to the collection.- 返回:
- a collection of
ClassLoaderFiles.SourceDirectory
items
-
size
public int size()Return the size of the collection.- 返回:
- the size of the collection
-
getFile
从接口复制的说明:ClassLoaderFileRepository
Return aClassLoaderFile
for the given name ornull
if no file is contained in this collection.- 指定者:
getFile
在接口中ClassLoaderFileRepository
- 参数:
name
- the name of the file- 返回:
- a
ClassLoaderFile
ornull
-