public class ClassLoaderFiles extends Object implements ClassLoaderFileRepository, Serializable
ClassLoaderFileRepository that maintains a collection of
 ClassLoaderFile items grouped by source directories.ClassLoaderFile, 
ClassLoaderRepository, 
Serialized Form| Modifier and Type | Class and Description | 
|---|---|
static class  | 
ClassLoaderFiles.SourceDirectory
An individual source directory that is being managed by the collection. 
 | 
NONE| Constructor and Description | 
|---|
ClassLoaderFiles()
Create a new  
ClassLoaderFiles instance. | 
ClassLoaderFiles(ClassLoaderFiles classLoaderFiles)
Create a new  
ClassLoaderFiles instance. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addAll(ClassLoaderFiles files)
Add all elements items from the specified  
ClassLoaderFiles to this
 instance. | 
void | 
addFile(String name,
       ClassLoaderFile file)
Add a single  
ClassLoaderFile to the collection. | 
void | 
addFile(String sourceDirectory,
       String name,
       ClassLoaderFile file)
Add a single  
ClassLoaderFile to the collection. | 
ClassLoaderFile | 
getFile(String name)
Return a  
ClassLoaderFile for the given name or null if no file is
 contained in this collection. | 
protected ClassLoaderFiles.SourceDirectory | 
getOrCreateSourceDirectory(String name)
Get or create a  
ClassLoaderFiles.SourceDirectory with the given name. | 
Collection<ClassLoaderFiles.SourceDirectory> | 
getSourceDirectories()
Return all  
SourceDirectories that 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 sourceDirectory, String name, ClassLoaderFile file)
ClassLoaderFile to the collection.sourceDirectory - the source directory of the filename - the name of the filefile - the file to addprotected final ClassLoaderFiles.SourceDirectory getOrCreateSourceDirectory(String name)
ClassLoaderFiles.SourceDirectory with the given name.name - the name of the directoryClassLoaderFiles.SourceDirectorypublic Collection<ClassLoaderFiles.SourceDirectory> getSourceDirectories()
SourceDirectories that have been added to the
 collection.ClassLoaderFiles.SourceDirectory 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 null