public interface ResourceContainer<T extends Archive<T>>
ClassLoader, File, and
URL-based Assets as resources within an archive. Archive is up to the implementations/specifications.| Modifier and Type | Method and Description |
|---|---|
T |
addAsResource(Asset resource,
ArchivePath target)
Adds the
Asset as a resource to the container, returning the container itself. |
T |
addAsResource(Asset resource,
String target)
Adds the
Asset as a resource to the container, returning the container itself. |
T |
addAsResource(File resource)
Adds the
File as a resource to the container, returning the container itself. |
T |
addAsResource(File resource,
ArchivePath target)
Adds the
File as a resource to the container, returning the container itself. |
T |
addAsResource(File resource,
String target)
Adds the
File as a resource to the container, returning the container itself. |
T |
addAsResource(Package resourcePackage,
String resourceName)
Adds the resource as a resource to the container, returning the container itself.
|
T |
addAsResource(Package resourcePackage,
String resourceName,
ArchivePath target)
Adds the resource as a resource to a specific path inside the container, returning the container itself.
|
T |
addAsResource(Package resourcePackage,
String resourceName,
String target)
Adds the resource as a resource to a specific path inside the container, returning the container itself.
|
T |
addAsResource(String resourceName)
Adds the resource as a resource to the container, returning the container itself.
|
T |
addAsResource(String resourceName,
ArchivePath target)
Adds the resource with the specified name to the container, returning the container itself.
|
T |
addAsResource(String resourceName,
ArchivePath target,
ClassLoader classLoader)
Adds the resource as a resource to the container, returning the container itself.
|
T |
addAsResource(String resourceName,
String target)
Adds the resource as a resource to the container, returning the container itself.
|
T |
addAsResource(URL resource,
ArchivePath target)
Adds the
URL as a resource to the container, returning the container itself. |
T |
addAsResource(URL resource,
String target)
Adds the
URL as a resource to the container, returning the container itself. |
T |
addAsResources(Package resourcePackage,
String... resourceNames)
Adds the resources inside the package as multiple resources to the container, returning the container itself.
|
T addAsResource(String resourceName) throws IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourceName - resource to addIllegalArgumentException - If the resourceName is nulladdAsResource(Asset, ArchivePath)T addAsResource(File resource) throws IllegalArgumentException
File as a resource 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 the resource is nulladdAsResource(Asset, ArchivePath)T addAsResource(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
resource path.IllegalArgumentException - if resourceName is nullIllegalArgumentException - if target is nulladdAsResource(Asset, ArchivePath)T addAsResource(File resource, String target) throws IllegalArgumentException
File as a resource 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
resource path.IllegalArgumentException - if resource is nullIllegalArgumentException - if target is nulladdAsResource(Asset, ArchivePath)T addAsResource(URL resource, String target) throws IllegalArgumentException
URL as a resource 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
resource path.IllegalArgumentException - if resource is nullIllegalArgumentException - if target is nulladdAsResource(Asset, ArchivePath)T addAsResource(Asset resource, String target) throws IllegalArgumentException
Asset as a resource 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
resource path.IllegalArgumentException - if resource is nullIllegalArgumentException - if target is nulladdAsResource(Asset, ArchivePath)T addAsResource(String resourceName, ArchivePath target) throws IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.target - The target within the archive into which we'll place the resourceresourceName - Name of the ClassLoader resource to addIllegalArgumentException - If the target is nullIllegalArgumentException - If the resourceName is nullT addAsResource(String resourceName, ArchivePath target, ClassLoader classLoader) 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
resource path.IllegalArgumentException - if resourceName is nullIllegalArgumentException - if target is nulladdAsResource(Asset, ArchivePath)T addAsResource(File resource, ArchivePath target) throws IllegalArgumentException
File as a resource 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
resource path.IllegalArgumentException - if resource is nullIllegalArgumentException - if target is nulladdAsResource(Asset, ArchivePath)T addAsResource(URL resource, ArchivePath target) throws IllegalArgumentException
URL as a resource 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
resource path.IllegalArgumentException - if resource is nullIllegalArgumentException - if target is nulladdAsResource(Asset, ArchivePath)T addAsResource(Asset resource, ArchivePath target) throws IllegalArgumentException
Asset as a resource 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
resource path.IllegalArgumentException - if resource is nullIllegalArgumentException - if target is nullT addAsResources(Package resourcePackage, String... resourceNames) throws IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourcePackage - The package of the resourcesresourceNames - The names of the resources inside resoucePackageIllegalArgumentException - if resourcePackage is nullIllegalArgumentException - if no resourceNames are specified or containing nullT addAsResource(Package resourcePackage, String resourceName) throws IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourcePackage - The package of the resourceresourceName - The name of the resource inside resoucePackageIllegalArgumentException - if resourcePackage is nullIllegalArgumentException - if resourceName is nullT addAsResource(Package resourcePackage, String resourceName, String target) throws IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourcePackage - The package of the resourceresourceName - The name of the resource inside resoucePackagetarget - The target location inside the containerIllegalArgumentException - if resourcePackage is nullIllegalArgumentException - if resourceName is nullIllegalArgumentException - if target is nullT addAsResource(Package resourcePackage, String resourceName, ArchivePath target) throws IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourcePackage - The package of the resourceresourceName - The name of the resource inside resoucePackagetarget - The target location inside the containerIllegalArgumentException - if resourcePackage is nullIllegalArgumentException - if resourceName is nullIllegalArgumentException - if target is nullCopyright © 2012 JBoss by Red Hat. All Rights Reserved.