public interface LibraryContainer<T extends Archive<T>>
Archive
is up to the implementations/specifications.Modifier and Type | Method and Description |
---|---|
T |
addAsLibraries(Archive<?>... archives)
|
T |
addAsLibraries(Archive<?>[]... archives)
|
T |
addAsLibraries(Collection<? extends Archive<?>> archives)
|
T |
addAsLibraries(File... resources)
|
T |
addAsLibraries(String... resourceNames)
Add multiple resources to this
Archive as libraries to the container, returning the container itself. |
T |
addAsLibrary(Archive<?> archive)
|
T |
addAsLibrary(Asset resource,
ArchivePath target)
Adds the
Asset as a library to the container, returning the container itself. |
T |
addAsLibrary(Asset resource,
String target)
Adds the
Asset as a library to the container, returning the container itself. |
T |
addAsLibrary(File resource)
Adds the
File as a library to the container, returning the container itself. |
T |
addAsLibrary(File resource,
ArchivePath target)
Adds the
File as a library to the container, returning the container itself. |
T |
addAsLibrary(File resource,
String target)
Adds the
File as a library to the container, returning the container itself. |
T |
addAsLibrary(String resourceName)
Adds the resource as a library to the container, returning the container itself.
|
T |
addAsLibrary(String resourceName,
ArchivePath target)
Adds the resource as a library to the container, returning the container itself.
|
T |
addAsLibrary(String resourceName,
String target)
Adds the resource as a library to the container, returning the container itself.
|
T |
addAsLibrary(URL resource,
ArchivePath target)
Adds the
URL as a library to the container, returning the container itself. |
T |
addAsLibrary(URL resource,
String target)
Adds the
URL as a library to the container, returning the container itself. |
T addAsLibrary(String resourceName) throws IllegalArgumentException
ClassLoader
used to obtain the resource is up to the implementation.resourceName
- resource to addIllegalArgumentException
- if resourceName is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibrary(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 addIllegalArgumentException
- if resourceName is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibrary(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 Archive
s
library path.IllegalArgumentException
- if resourceName is nullIllegalArgumentException
- if target is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibrary(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 Archive
s
library path.IllegalArgumentException
- if resource is nullIllegalArgumentException
- if target is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibrary(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 Archive
s
library path.IllegalArgumentException
- if resource is nullIllegalArgumentException
- if target is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibrary(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 Archive
s
library path.IllegalArgumentException
- if resource is nullIllegalArgumentException
- if target is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibrary(String resourceName, ArchivePath 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 Archive
s
library path.IllegalArgumentException
- if resourceName is nullIllegalArgumentException
- if target is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibrary(File resource, ArchivePath 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 Archive
s
library path.IllegalArgumentException
- if resource is nullIllegalArgumentException
- if target is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibrary(URL resource, ArchivePath 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 Archive
s
library path.IllegalArgumentException
- if resource is nullIllegalArgumentException
- if target is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibrary(Asset resource, ArchivePath 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 Archive
s
library path.resource
- Asset
resource to addIllegalArgumentException
- if resource is nullIllegalArgumentException
- if target is nullT addAsLibrary(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 addIllegalArgumentException
- if Archive
is nulladdAsLibrary(Asset, ArchivePath)
T addAsLibraries(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 addIllegalArgumentException
- if resourceNames are null or emptyaddAsLibrary(String)
T addAsLibraries(File... resources) throws IllegalArgumentException
File
to this Archive
as libraries to the container, returning the container itself. File
s will be placed into the Container Library path under File.getName()
.resources
- File
resources to addIllegalArgumentException
- if File
resources are null or emptyaddAsLibrary(File)
T addAsLibraries(Archive<?>... archives) throws IllegalArgumentException
Archive
s to this Archive
as libraries to the container, returning the container
itself. Archive
s will be placed into the Container Library path under Archive.getName()
.archives
- Archive
resources to addIllegalArgumentException
- if Archive
resources are nulladdAsLibrary(Archive)
T addAsLibraries(Collection<? extends Archive<?>> archives) throws IllegalArgumentException
Archive
s to this Archive
as libraries to the container, returning the container
itself. Archive
s will be placed into the Container Library path under Archive.getName()
.archives
- Archive
resources to addIllegalArgumentException
- if Collection
of archives is nulladdAsLibrary(Archive)
T addAsLibraries(Archive<?>[]... archives) throws IllegalArgumentException
Archive
s to this Archive
as libraries to the container, returning the container
itself. Archive
s will be placed into the Container Library path under Archive.getName()
.archives
- Archive
resources to addIllegalArgumentException
- if Collection
of archives is nulladdAsLibrary(Archive)
Copyright © 2016 JBoss by Red Hat. All rights reserved.