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

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 |
addAsLibraries(Archive<?>... archives)
Add multiple Archives to this Archive as libraries to the container, returning the container itself. |
T |
addAsLibraries(Archive<?>[]... archives)
Add multiple Archives to this Archive as libraries to the container, returning the container itself. |
T |
addAsLibraries(java.util.Collection<? extends Archive<?>> archives)
Add multiple Archives to this Archive as libraries to the container, returning the container itself. |
T |
addAsLibraries(java.io.File... resources)
Add multiple File to this Archive as libraries to the container, returning the container itself. |
T |
addAsLibraries(java.lang.String... resourceNames)
Add multiple resources to this Archive as libraries to the container, returning the container itself. |
T |
addAsLibrary(Archive<?> archive)
Add another Archive to this Archive as a library to the container, returning the container itself. |
T |
addAsLibrary(Asset resource,
ArchivePath target)
Adds the Asset as a library to the container, returning the container itself. |
T |
addAsLibrary(Asset resource,
java.lang.String target)
Adds the Asset as a library to the container, returning the container itself. |
T |
addAsLibrary(java.io.File resource)
Adds the File as a library to the container, returning the container itself. |
T |
addAsLibrary(java.io.File resource,
ArchivePath target)
Adds the File as a library to the container, returning the container itself. |
T |
addAsLibrary(java.io.File resource,
java.lang.String target)
Adds the File as a library to the container, returning the container itself. |
T |
addAsLibrary(java.lang.String resourceName)
Adds the resource as a library to the container, returning the container itself. |
T |
addAsLibrary(java.lang.String resourceName,
ArchivePath target)
Adds the resource as a library to the container, returning the container itself. |
T |
addAsLibrary(java.lang.String resourceName,
java.lang.String target)
Adds the resource as a library to the container, returning the container itself. |
T |
addAsLibrary(java.net.URL resource,
ArchivePath target)
Adds the URL as a library to the container, returning the container itself. |
T |
addAsLibrary(java.net.URL resource,
java.lang.String target)
Adds the URL as a library to the container, returning the container itself. |
| Method Detail |
|---|
T addAsLibrary(java.lang.String resourceName)
throws java.lang.IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.
resourceName - resource to add
java.lang.IllegalArgumentException - if resourceName is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibrary(java.io.File resource)
throws java.lang.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
java.lang.IllegalArgumentException - if resourceName is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibrary(java.lang.String resourceName,
java.lang.String target)
throws java.lang.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.
java.lang.IllegalArgumentException - if resourceName is null
java.lang.IllegalArgumentException - if target is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibrary(java.io.File resource,
java.lang.String target)
throws java.lang.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.
java.lang.IllegalArgumentException - if resource is null
java.lang.IllegalArgumentException - if target is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibrary(java.net.URL resource,
java.lang.String target)
throws java.lang.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.
java.lang.IllegalArgumentException - if resource is null
java.lang.IllegalArgumentException - if target is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibrary(Asset resource,
java.lang.String target)
throws java.lang.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.
java.lang.IllegalArgumentException - if resource is null
java.lang.IllegalArgumentException - if target is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibrary(java.lang.String resourceName,
ArchivePath target)
throws java.lang.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.
java.lang.IllegalArgumentException - if resourceName is null
java.lang.IllegalArgumentException - if target is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibrary(java.io.File resource,
ArchivePath target)
throws java.lang.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.
java.lang.IllegalArgumentException - if resource is null
java.lang.IllegalArgumentException - if target is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibrary(java.net.URL resource,
ArchivePath target)
throws java.lang.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.
java.lang.IllegalArgumentException - if resource is null
java.lang.IllegalArgumentException - if target is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibrary(Asset resource,
ArchivePath target)
throws java.lang.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
java.lang.IllegalArgumentException - if resource is null
java.lang.IllegalArgumentException - if target is null
T addAsLibrary(Archive<?> archive)
throws java.lang.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
java.lang.IllegalArgumentException - if Archive is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibraries(java.lang.String... resourceNames)
throws java.lang.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
java.lang.IllegalArgumentException - if resourceNames are null or emptyaddAsLibrary(String)
T addAsLibraries(java.io.File... resources)
throws java.lang.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().
resources - File resources to add
java.lang.IllegalArgumentException - if File resources are null or emptyaddAsLibrary(File)
T addAsLibraries(Archive<?>... archives)
throws java.lang.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().
archives - Archive resources to add
java.lang.IllegalArgumentException - if Archive resources are nulladdAsLibrary(Archive)
T addAsLibraries(java.util.Collection<? extends Archive<?>> archives)
throws java.lang.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().
archives - Archive resources to add
java.lang.IllegalArgumentException - if Collection of archives is nulladdAsLibrary(Archive)
T addAsLibraries(Archive<?>[]... archives)
throws java.lang.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().
archives - Archive resources to add
java.lang.IllegalArgumentException - if Collection of archives is nulladdAsLibrary(Archive)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||