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(Class<?> clazz)
|
T |
addClass(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(String fullyQualifiedClassName,
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(Class<?>... classes)
|
T |
addDefaultPackage()
|
T |
addPackage(Package pack)
|
T |
addPackage(String pack)
|
T |
addPackages(boolean recursive,
Filter<ArchivePath> filter,
Package... packages)
|
T |
addPackages(boolean recursive,
Filter<ArchivePath> filter,
String... packages)
|
T |
addPackages(boolean recursive,
Package... packages)
|
T |
addPackages(boolean recursive,
String... packages)
|
T |
deleteClass(Class<?> clazz)
|
T |
deleteClass(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(Class<?>... classes)
|
T |
deleteDefaultPackage()
|
T |
deletePackage(Package pack)
|
T |
deletePackage(String pack)
|
T |
deletePackages(boolean recursive,
Filter<ArchivePath> filter,
Package... packages)
|
T |
deletePackages(boolean recursive,
Filter<ArchivePath> filter,
String... packages)
|
T |
deletePackages(boolean recursive,
Package... packages)
|
T |
deletePackages(boolean recursive,
String... packages)
|
addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResourcesT addClass(Class<?> clazz) throws IllegalArgumentException
class - The class to add to the ArchiveIllegalArgumentException - If no class were specifiedT addClass(String fullyQualifiedClassName) throws 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 addIllegalArgumentException - If no class name was specifiedIllegalArgumentException - If the Class could not be loadedT addClass(String fullyQualifiedClassName, ClassLoader cl) throws 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 ClassIllegalArgumentException - If no class name was specifiedIllegalArgumentException - If no ClassLoader was specifiedIllegalArgumentException - If the Class could not be loaded by the target ClassLoaderT addClasses(Class<?>... classes) throws IllegalArgumentException
classes - The classes to add to the ArchiveIllegalArgumentException - If no classes were specifiedT addPackage(Package pack) throws IllegalArgumentException
pack - The Package to addIllegalArgumentException - If no package were specifiedaddPackages(boolean, Package...)T addDefaultPackage()
T addPackages(boolean recursive, Package... packages) throws IllegalArgumentException
recursive - Should the sub packages be addedpackages - All the packages to addIllegalArgumentException - If no packages were specifiedaddPackages(boolean, Filter, Package...)T addPackages(boolean recursive, Filter<ArchivePath> filter, Package... packages) throws 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 addIllegalArgumentException - If no packages were specifiedT addPackage(String pack) throws IllegalArgumentException
pack - Package to add represented by a String ("my/package")IllegalArgumentException - If no package were specifiedaddPackages(boolean, Package...)T addPackages(boolean recursive, String... packages) throws IllegalArgumentException
recursive - Should the sub packages be addedpackages - All the packages to add represented by a String ("my/package")IllegalArgumentException - If no packages were specifiedaddPackages(boolean, Filter, Package...)T addPackages(boolean recursive, Filter<ArchivePath> filter, String... packages) throws 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")IllegalArgumentException - If no packages were specifiedT deleteClass(Class<?> clazz) throws IllegalArgumentException
class - The class to be deleted from the ArchiveIllegalArgumentException - If no class was specifiedT deleteClass(String fullyQualifiedClassName) throws 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 deletedIllegalArgumentException - If no class name was specifiedIllegalArgumentException - If the Class could not be loadedT deleteClasses(Class<?>... classes) throws IllegalArgumentException
classes - The classes to be removed from the ArchiveIllegalArgumentException - If no classes were specifiedT deletePackage(Package pack) throws IllegalArgumentException
pack - The Package to be deletedIllegalArgumentException - If no package was specifieddeletePackages(boolean, Package...)T deletePackage(String pack) throws IllegalArgumentException
pack - Package to be delete represented by a String ("my/package")IllegalArgumentException - If no package was specifieddeletePackages(boolean, Package...)T deleteDefaultPackage()
T deletePackages(boolean recursive, Package... packages) throws IllegalArgumentException
recursive - Should the sub packages be deleted?packages - All the packages to be deletedIllegalArgumentException - If no packages were specifieddeletePackages(boolean, Filter, Package...)T deletePackages(boolean recursive, String... packages) throws IllegalArgumentException
recursive - Should the sub packages be deleted?packages - All the packages to be deleted represented by a String ("my/package")IllegalArgumentException - If no packages were specifieddeletePackages(boolean, Filter, Package...)T deletePackages(boolean recursive, Filter<ArchivePath> filter, Package... packages) throws 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 deletedIllegalArgumentException - If no packages were specified or if no filter was specifiedT deletePackages(boolean recursive, Filter<ArchivePath> filter, String... packages) throws 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")IllegalArgumentException - If no packages were specified or if no filter was specifiedCopyright © 2015 JBoss by Red Hat. All rights reserved.