|
||||||||||
| 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 specified Class to the Archive. |
T |
addClasses(Class<?>... classes)
Adds the specified Classes to the Archive. |
T |
addPackage(Package pack)
Adds all classes in the specified Package to the Archive. |
T |
addPackages(boolean recursive,
Package... packages)
Adds all classes in the specified Packages to the Archive. |
| Method Detail |
|---|
T addClass(Class<?> clazz)
throws IllegalArgumentException
Archive.
class - The class to add to the Archive
IllegalArgumentException - If no class were specified
T addClasses(Class<?>... classes)
throws IllegalArgumentException
Archive.
classes - The classes to add to the Archive
IllegalArgumentException - If no classes were specified
T addPackage(Package pack)
throws IllegalArgumentException
Package to the Archive.
pack - The Package to add
IllegalArgumentException - If no package were specified
T addPackages(boolean recursive,
Package... packages)
throws IllegalArgumentException
Packages to the Archive.
recursive - Should the sub packages be addedpackages - 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 | |||||||||