public class ClassLoaderFiles extends Object implements ClassLoaderFileRepository, Serializable
ClassLoaderFileRepository that maintains a collection of
 ClassLoaderFile items grouped by source folders.ClassLoaderFile, 
ClassLoaderRepository, 
Serialized Form| Modifier and Type | Class and Description | 
|---|---|
| static class  | ClassLoaderFiles.SourceFolderAn individual source folder that is being managed by the collection. | 
NONE| Constructor and Description | 
|---|
| ClassLoaderFiles()Create a new  ClassLoaderFilesinstance. | 
| ClassLoaderFiles(ClassLoaderFiles classLoaderFiles)Create a new  ClassLoaderFilesinstance. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addAll(ClassLoaderFiles files)Add all elements items from the specified  ClassLoaderFilesto this
 instance. | 
| void | addFile(String name,
       ClassLoaderFile file)Add a single  ClassLoaderFileto the collection. | 
| void | addFile(String sourceFolder,
       String name,
       ClassLoaderFile file)Add a single  ClassLoaderFileto the collection. | 
| ClassLoaderFile | getFile(String name)Return a  ClassLoaderFilefor the given name ornullif no file is
 contained in this collection. | 
| protected ClassLoaderFiles.SourceFolder | getOrCreateSourceFolder(String name)Get or create a  ClassLoaderFiles.SourceFolderwith the given name. | 
| Collection<ClassLoaderFiles.SourceFolder> | getSourceFolders()Return all  SourceFoldersthat have been added to the
 collection. | 
| int | size()Return the size of the collection. | 
public ClassLoaderFiles()
ClassLoaderFiles instance.public ClassLoaderFiles(ClassLoaderFiles classLoaderFiles)
ClassLoaderFiles instance.classLoaderFiles - the source classloader files.public void addAll(ClassLoaderFiles files)
ClassLoaderFiles to this
 instance.files - the files to addpublic void addFile(String name, ClassLoaderFile file)
ClassLoaderFile to the collection.name - the name of the filefile - the file to addpublic void addFile(String sourceFolder, String name, ClassLoaderFile file)
ClassLoaderFile to the collection.sourceFolder - the source folder of the filename - the name of the filefile - the file to addprotected final ClassLoaderFiles.SourceFolder getOrCreateSourceFolder(String name)
ClassLoaderFiles.SourceFolder with the given name.name - the name of the folderClassLoaderFiles.SourceFolderpublic Collection<ClassLoaderFiles.SourceFolder> getSourceFolders()
SourceFolders that have been added to the
 collection.ClassLoaderFiles.SourceFolder itemspublic int size()
public ClassLoaderFile getFile(String name)
ClassLoaderFileRepositoryClassLoaderFile for the given name or null if no file is
 contained in this collection.getFile in interface ClassLoaderFileRepositoryname - the name of the fileClassLoaderFile or nullCopyright © 2018 Pivotal Software, Inc.. All rights reserved.