|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClassContainer<T extends Archive<T>>
ClassContainer
Defines the contract for a component capable of storing
Java Classes.
The actual path to the Class
resources within the Archive
is up to the implementations/specifications.
Method Summary | |
---|---|
T |
addClass(Class<?> clazz)
Adds the Class , and all member (inner) Class es
to the Archive . |
T |
addClass(String fullyQualifiedClassName)
Adds the Class , and all member (inner) Class es,
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)
Adds the Class es, and all member (inner) Class es
to the Archive . |
T |
addPackage(Package pack)
Adds all classes in the specified Package to the Archive . |
T |
addPackages(boolean recursive,
Filter<Class<?>> filter,
Package... packages)
Adds all classes accepted by the filter in the specified Package s to the Archive . |
T |
addPackages(boolean recursive,
Package... packages)
Adds all classes in the specified Package s to the Archive . |
Methods inherited from interface org.jboss.shrinkwrap.api.container.ResourceContainer |
---|
addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource |
Method Detail |
---|
T addClass(Class<?> clazz) throws IllegalArgumentException
Class
, and all member (inner) Class
es
to the Archive
.
class
- The class to add to the Archive
IllegalArgumentException
- If no class were specifiedT addClass(String fullyQualifiedClassName) throws IllegalArgumentException
Class
, and all member (inner) Class
es,
with the specified fully-qualified name,
loaded by the Thread Context ClassLoader
, to the Archive
.
fullyQualifiedClassName
- The name of the Class
to add
IllegalArgumentException
- If no class name was specified
IllegalArgumentException
- 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 Class
IllegalArgumentException
- If no class name was specified
IllegalArgumentException
- If no ClassLoader
was specified
IllegalArgumentException
- If the Class
could not be loaded by the target ClassLoader
T addClasses(Class<?>... classes) throws IllegalArgumentException
Class
es, and all member (inner) Class
es
to the Archive
.
classes
- The classes to add to the Archive
IllegalArgumentException
- If no classes were specifiedT addPackage(Package pack) throws IllegalArgumentException
Package
to the Archive
.
pack
- The Package
to add
IllegalArgumentException
- If no package were specifiedaddPackages(boolean, Package...)
T addPackages(boolean recursive, Package... packages) throws IllegalArgumentException
Package
s to the Archive
.
recursive
- Should the sub packages be addedpackages
- All the packages to add
IllegalArgumentException
- If no packages were specifiedaddPackages(boolean, Filter, Package...)
T addPackages(boolean recursive, Filter<Class<?>> filter, Package... packages) throws IllegalArgumentException
Package
s to the Archive
.
recursive
- Should the sub packages be addedfilter
- filter out specific classespackages
- All the packages to add
IllegalArgumentException
- If no packages were specified
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |