public interface ClassContainer<T extends Archive<T>> extends ResourceContainer<T>
Class resources within the Archive is up to the
implementations/specifications.| Modifier and Type | Method and Description |
|---|---|
T |
addClass(java.lang.Class<?> clazz)
|
T |
addClass(java.lang.String fullyQualifiedClassName)
Adds the
Class, and all member (inner) Classes, with the specified fully-qualified name, loaded
by the Thread Context ClassLoader, to the Archive. |
T |
addClass(java.lang.String fullyQualifiedClassName,
java.lang.ClassLoader cl)
Adds the
Class, and all member (inner) @link{Class}es, with the specified fully-qualified name, loaded by
the specified ClassLoader, to the Archive. |
T |
addClasses(java.lang.Class<?>... classes)
|
T |
addDefaultPackage()
Adds all classes in the default
Package to the Archive. |
T |
addPackage(java.lang.Package pack)
Adds all classes in the specified
Package to the Archive. |
T |
addPackage(java.lang.String pack)
Adds all classes in the specified
Package to the Archive. |
T |
addPackages(boolean recursive,
Filter<ArchivePath> filter,
java.lang.Package... packages)
Adds all classes accepted by the filter in the specified
Packages to the Archive. |
T |
addPackages(boolean recursive,
Filter<ArchivePath> filter,
java.lang.String... packages)
Adds all classes accepted by the filter in the specified
Packages to the Archive. |
T |
addPackages(boolean recursive,
java.lang.Package... packages)
Adds all classes in the specified
Packages to the Archive. |
T |
addPackages(boolean recursive,
java.lang.String... packages)
Adds all classes in the specified
Packages to the Archive. |
T |
deleteClass(java.lang.Class<?> clazz)
|
T |
deleteClass(java.lang.String fullyQualifiedClassName)
Deletes the
Class, and all member (inner) Classes, with the specified fully-qualified name, loaded by the
Thread Context ClassLoader, from the Archive. |
T |
deleteClasses(java.lang.Class<?>... classes)
|
T |
deleteDefaultPackage()
Deletes all classes in the default
Package from the Archive. |
T |
deletePackage(java.lang.Package pack)
Deletes all classes in the specified
Package from the Archive. |
T |
deletePackage(java.lang.String pack)
Deletes all classes in the specified
Package from the Archive. |
T |
deletePackages(boolean recursive,
Filter<ArchivePath> filter,
java.lang.Package... packages)
Deletes all classes accepted by the filter in the specified
Packages from the Archive. |
T |
deletePackages(boolean recursive,
Filter<ArchivePath> filter,
java.lang.String... packages)
Delete all classes accepted by the filter in the specified
Packages from the Archive. |
T |
deletePackages(boolean recursive,
java.lang.Package... packages)
Deletes all classes in the specified
Packages from the Archive. |
T |
deletePackages(boolean recursive,
java.lang.String... packages)
Delete all classes in the specified
Packages from the Archive. |
addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResourcesT addClass(java.lang.Class<?> clazz) throws java.lang.IllegalArgumentException
class - The class to add to the Archivejava.lang.IllegalArgumentException - If no class were specifiedT addClass(java.lang.String fullyQualifiedClassName) throws java.lang.IllegalArgumentException
Class, and all member (inner) Classes, with the specified fully-qualified name, loaded
by the Thread Context ClassLoader, to the Archive.fullyQualifiedClassName - The name of the Class to addjava.lang.IllegalArgumentException - If no class name was specifiedjava.lang.IllegalArgumentException - If the Class could not be loadedT addClass(java.lang.String fullyQualifiedClassName, java.lang.ClassLoader cl) throws java.lang.IllegalArgumentException
Class, and all member (inner) @link{Class}es, with the specified fully-qualified name, loaded by
the specified ClassLoader, to the Archive.fullyQualifiedClassName - The name of the Class to addcl - The ClassLoader used to load the Classjava.lang.IllegalArgumentException - If no class name was specifiedjava.lang.IllegalArgumentException - If no ClassLoader was specifiedjava.lang.IllegalArgumentException - If the Class could not be loaded by the target ClassLoaderT addClasses(java.lang.Class<?>... classes) throws java.lang.IllegalArgumentException
classes - The classes to add to the Archivejava.lang.IllegalArgumentException - If no classes were specifiedT addPackage(java.lang.Package pack) throws java.lang.IllegalArgumentException
pack - The Package to addjava.lang.IllegalArgumentException - If no package were specifiedaddPackages(boolean, Package...)T addDefaultPackage()
T addPackages(boolean recursive, java.lang.Package... packages) throws java.lang.IllegalArgumentException
Packages to the Archive.recursive - Should the sub packages be addedpackages - All the packages to addjava.lang.IllegalArgumentException - If no packages were specifiedaddPackages(boolean, Filter, Package...)T addPackages(boolean recursive, Filter<ArchivePath> filter, java.lang.Package... packages) throws java.lang.IllegalArgumentException
Packages to the Archive. ArchivePath returned to the filter is the ArchivePath of the class, not the final location. recursive - Should the sub packages be addedfilter - filter out specific classespackages - All the packages to addjava.lang.IllegalArgumentException - If no packages were specifiedT addPackage(java.lang.String pack) throws java.lang.IllegalArgumentException
pack - Package to add represented by a String ("my/package")java.lang.IllegalArgumentException - If no package were specifiedaddPackages(boolean, Package...)T addPackages(boolean recursive, java.lang.String... packages) throws java.lang.IllegalArgumentException
Packages to the Archive.recursive - Should the sub packages be addedpackages - All the packages to add represented by a String ("my/package")java.lang.IllegalArgumentException - If no packages were specifiedaddPackages(boolean, Filter, Package...)T addPackages(boolean recursive, Filter<ArchivePath> filter, java.lang.String... packages) throws java.lang.IllegalArgumentException
Packages to the Archive. ArchivePath returned to the filter is the ArchivePath of the class, not the final location. recursive - Should the sub packages be addedfilter - filter out specific classespackages - All the packages to add represented by a String ("my/package")java.lang.IllegalArgumentException - If no packages were specifiedT deleteClass(java.lang.Class<?> clazz) throws java.lang.IllegalArgumentException
class - The class to be deleted from the Archivejava.lang.IllegalArgumentException - If no class was specifiedT deleteClass(java.lang.String fullyQualifiedClassName) throws java.lang.IllegalArgumentException
Class, and all member (inner) Classes, with the specified fully-qualified name, loaded by the
Thread Context ClassLoader, from the Archive.fullyQualifiedClassName - The name of the Class to be deletedjava.lang.IllegalArgumentException - If no class name was specifiedjava.lang.IllegalArgumentException - If the Class could not be loadedT deleteClasses(java.lang.Class<?>... classes) throws java.lang.IllegalArgumentException
classes - The classes to be removed from the Archivejava.lang.IllegalArgumentException - If no classes were specifiedT deletePackage(java.lang.Package pack) throws java.lang.IllegalArgumentException
pack - The Package to be deletedjava.lang.IllegalArgumentException - If no package was specifieddeletePackages(boolean, Package...)T deletePackage(java.lang.String pack) throws java.lang.IllegalArgumentException
pack - Package to be delete represented by a String ("my/package")java.lang.IllegalArgumentException - If no package was specifieddeletePackages(boolean, Package...)T deleteDefaultPackage()
T deletePackages(boolean recursive, java.lang.Package... packages) throws java.lang.IllegalArgumentException
Packages from the Archive.recursive - Should the sub packages be deleted?packages - All the packages to be deletedjava.lang.IllegalArgumentException - If no packages were specifieddeletePackages(boolean, Filter, Package...)T deletePackages(boolean recursive, java.lang.String... packages) throws java.lang.IllegalArgumentException
Packages from the Archive.recursive - Should the sub packages be deleted?packages - All the packages to be deleted represented by a String ("my/package")java.lang.IllegalArgumentException - If no packages were specifieddeletePackages(boolean, Filter, Package...)T deletePackages(boolean recursive, Filter<ArchivePath> filter, java.lang.Package... packages) throws java.lang.IllegalArgumentException
Packages from the Archive. ArchivePath returned to the filter is the ArchivePath of the class, not the final location. recursive - Should the sub packages be deleted?filter - filter out specific classespackages - All the packages to be deletedjava.lang.IllegalArgumentException - If no packages were specified or if no filter was specifiedT deletePackages(boolean recursive, Filter<ArchivePath> filter, java.lang.String... packages) throws java.lang.IllegalArgumentException
Packages from the Archive. ArchivePath returned to the filter is the ArchivePath of the class, not the final location. recursive - Should the sub packages be deleted?filter - filter out specific classespackages - All the packages to be deleted represented by a String ("my/package")java.lang.IllegalArgumentException - If no packages were specified or if no filter was specified