类 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 classAn individual source directory that is being managed by the collection. -
字段概要
从接口继承的字段 org.springframework.boot.devtools.restart.classloader.ClassLoaderFileRepository
NONE -
构造器概要
构造器构造器说明Create a newClassLoaderFilesinstance.ClassLoaderFiles(ClassLoaderFiles classLoaderFiles) Create a newClassLoaderFilesinstance. -
方法概要
修饰符和类型方法说明voidaddAll(ClassLoaderFiles files) Add all elements items from the specifiedClassLoaderFilesto this instance.voidaddFile(String sourceDirectory, String name, ClassLoaderFile file) Add a singleClassLoaderFileto the collection.voidaddFile(String name, ClassLoaderFile file) Add a singleClassLoaderFileto the collection.Return aClassLoaderFilefor the given name ornullif no file is contained in this collection.protected final ClassLoaderFiles.SourceDirectoryGet or create aClassLoaderFiles.SourceDirectorywith the given name.Return allSourceDirectoriesthat have been added to the collection.intsize()Return the size of the collection.
-
构造器详细资料
-
ClassLoaderFiles
public ClassLoaderFiles()Create a newClassLoaderFilesinstance. -
ClassLoaderFiles
Create a newClassLoaderFilesinstance.- 参数:
classLoaderFiles- the source classloader files.
-
-
方法详细资料
-
addAll
Add all elements items from the specifiedClassLoaderFilesto this instance.- 参数:
files- the files to add
-
addFile
Add a singleClassLoaderFileto the collection.- 参数:
name- the name of the filefile- the file to add
-
addFile
Add a singleClassLoaderFileto the collection.- 参数:
sourceDirectory- the source directory of the filename- the name of the filefile- the file to add
-
getOrCreateSourceDirectory
Get or create aClassLoaderFiles.SourceDirectorywith the given name.- 参数:
name- the name of the directory- 返回:
- an existing or newly added
ClassLoaderFiles.SourceDirectory
-
getSourceDirectories
Return allSourceDirectoriesthat have been added to the collection.- 返回:
- a collection of
ClassLoaderFiles.SourceDirectoryitems
-
size
public int size()Return the size of the collection.- 返回:
- the size of the collection
-
getFile
从接口复制的说明:ClassLoaderFileRepositoryReturn aClassLoaderFilefor the given name ornullif no file is contained in this collection.- 指定者:
getFile在接口中ClassLoaderFileRepository- 参数:
name- the name of the file- 返回:
- a
ClassLoaderFileornull
-