|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LibraryContainer<T extends Archive<T>>

LibraryContainer
Defines the contract for a component capable of storing
Libraries.
The actual path to the Library resources within the Archive
is up to the implementations/specifications.
| Method Summary | |
|---|---|
T |
addLibraries(Archive<?>... archives)
Add multiple Archives to this Archive as libraries to the container, returning the container itself. |
T |
addLibraries(File... resources)
Add multiple File to this Archive as libraries to the container, returning the container itself. |
T |
addLibraries(String... resourceNames)
Add multiple resources to this Archive as libraries to the container, returning the container itself. |
T |
addLibrary(Archive<?> archive)
Add another Archive to this Archive as a library to the container, returning the container itself. |
T |
addLibrary(Asset resource,
Path target)
Adds the Asset as a library to the container, returning the container itself. |
T |
addLibrary(Asset resource,
String target)
Adds the Asset as a library to the container, returning the container itself. |
T |
addLibrary(File resource)
Adds the File as a library to the container, returning the container itself. |
T |
addLibrary(File resource,
Path target)
Adds the File as a library to the container, returning the container itself. |
T |
addLibrary(File resource,
String target)
Adds the File as a library to the container, returning the container itself. |
T |
addLibrary(String resourceName)
Adds the resource as a library to the container, returning the container itself. |
T |
addLibrary(String resourceName,
Path target)
Adds the resource as a library to the container, returning the container itself. |
T |
addLibrary(String resourceName,
String target)
Adds the resource as a library to the container, returning the container itself. |
T |
addLibrary(URL resource,
Path target)
Adds the URL as a library to the container, returning the container itself. |
T |
addLibrary(URL resource,
String target)
Adds the URL as a library to the container, returning the container itself. |
| Method Detail |
|---|
T addLibrary(String resourceName)
throws IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.
resourceName - resource to add
IllegalArgumentException - if resourceName is nulladdLibrary(Asset, Path)
T addLibrary(File resource)
throws IllegalArgumentException
File as a library to the container, returning the container itself.
File will be placed into the Container Library path under File.getName().
resource - File resource to add
IllegalArgumentException - if resourceName is nulladdLibrary(Asset, Path)
T addLibrary(String resourceName,
String target)
throws IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.
resourceName - resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives library path.
IllegalArgumentException - if resourceName is null
IllegalArgumentException - if target is nulladdLibrary(Asset, Path)
T addLibrary(File resource,
String target)
throws IllegalArgumentException
File as a library to the container, returning the container itself.
resource - File resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives library path.
IllegalArgumentException - if resource is null
IllegalArgumentException - if target is nulladdLibrary(Asset, Path)
T addLibrary(URL resource,
String target)
throws IllegalArgumentException
URL as a library to the container, returning the container itself.
resource - URL resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives library path.
IllegalArgumentException - if resource is null
IllegalArgumentException - if target is nulladdLibrary(Asset, Path)
T addLibrary(Asset resource,
String target)
throws IllegalArgumentException
Asset as a library to the container, returning the container itself.
resource - Asset resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives library path.
IllegalArgumentException - if resource is null
IllegalArgumentException - if target is nulladdLibrary(Asset, Path)
T addLibrary(String resourceName,
Path target)
throws IllegalArgumentException
ClassLoader used to obtain the resource is up to
the implementation.
resource - resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives library path.
IllegalArgumentException - if resourceName is null
IllegalArgumentException - if target is nulladdLibrary(Asset, Path)
T addLibrary(File resource,
Path target)
throws IllegalArgumentException
File as a library to the container, returning the container itself.
resource - File resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives library path.
IllegalArgumentException - if resource is null
IllegalArgumentException - if target is nulladdLibrary(Asset, Path)
T addLibrary(URL resource,
Path target)
throws IllegalArgumentException
URL as a library to the container, returning the container itself.
resource - URL resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives library path.
IllegalArgumentException - if resource is null
IllegalArgumentException - if target is nulladdLibrary(Asset, Path)
T addLibrary(Asset resource,
Path target)
throws IllegalArgumentException
Asset as a library to the container, returning the container itself.
target - The target path within the archive in which to add the resource, relative to the Archives library path.resource - Asset resource to add
IllegalArgumentException - if resource is null
IllegalArgumentException - if target is null
T addLibrary(Archive<?> archive)
throws IllegalArgumentException
Archive to this Archive as a library to the container, returning the container itself.
Archive will be placed into the Container Library path under Archive.getName().
archive - Archive resource to add
IllegalArgumentException - if Archive is nulladdLibrary(Asset, Path)
T addLibraries(String... resourceNames)
throws IllegalArgumentException
Archive as libraries to the container, returning the container itself.
ClassLoader used to obtain the resource is up to the implementation.
resourceNames - resources to add
IllegalArgumentException - if resourceNames are null or emptyaddLibrary(String)
T addLibraries(File... resources)
throws IllegalArgumentException
File to this Archive as libraries to the container, returning the container itself.
Files will be placed into the Container Library path under File.getName().
resourceNames - File resources to add
IllegalArgumentException - if File resources are null or emptyaddLibrary(File)
T addLibraries(Archive<?>... archives)
throws IllegalArgumentException
Archives to this Archive as libraries to the container, returning the container itself.
Archives will be placed into the Container Library path under Archive.getName().
archive - Archive resources to add
IllegalArgumentException - if Archive resources are nulladdLibrary(Archive)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||