|
ShrinkWrap API 1.1.0-alpha-2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EnterpriseContainer<T extends Archive<T>>
Defines the contract for a component capable of storing Enterprise related resources.
The actual path to the Enterprise resources within the Archive is up to the implementations/specifications.
| Method Summary | |
|---|---|
T |
addAsApplicationResource(Asset resource,
ArchivePath target)
Adds a Asset to this Archives application context. |
T |
addAsApplicationResource(Asset resource,
String target)
Adds a Asset to this Archives application context. |
T |
addAsApplicationResource(File resource)
Adds a File to this Archives application context. |
T |
addAsApplicationResource(File resource,
ArchivePath target)
Adds a File to this Archives application context. |
T |
addAsApplicationResource(File resource,
String target)
Adds a File to this Archives application context. |
T |
addAsApplicationResource(Package resourcePackage,
String resourceName)
Adds the resource as a resource to the container, returning the container itself. |
T |
addAsApplicationResource(Package resourcePackage,
String resourceName,
ArchivePath target)
Adds the resource as a resource to a specific path inside the container, returning the container itself. |
T |
addAsApplicationResource(Package resourcePackage,
String resourceName,
String target)
Adds the resource as a resource to a specific path inside the container, returning the container itself. |
T |
addAsApplicationResource(String resourceName)
Adds a resource to this Archives application context. |
T |
addAsApplicationResource(String resourceName,
ArchivePath target)
Adds a resource to this Archives application context. |
T |
addAsApplicationResource(String resourceName,
String target)
Adds a resource to this Archives application context. |
T |
addAsApplicationResource(URL resource,
ArchivePath target)
Adds a URL to this Archives application context. |
T |
addAsApplicationResource(URL resource,
String target)
Adds a URL to this Archives application context. |
T |
addAsApplicationResources(Package resourcePackage,
String... resourceNames)
Adds the resources inside the package as multiple resources to the container, returning the container itself. |
T |
addAsModule(Archive<?> archive)
Adds a archive to this Archives module context. |
T |
addAsModule(Asset resource,
ArchivePath targetPath)
Adds a Asset to this Archives module context. |
T |
addAsModule(Asset resource,
String targetPath)
Adds a Asset to this Archives module context. |
T |
addAsModule(File resource)
Adds a File to this Archives module context. |
T |
addAsModule(File resource,
ArchivePath targetPath)
Adds a File to this Archives module context. |
T |
addAsModule(File resource,
String targetPath)
Adds a File to this Archives module context. |
T |
addAsModule(String resourceName)
Adds a resource to this Archives module context. |
T |
addAsModule(String resourceName,
ArchivePath targetPath)
Adds a resource to this Archives module context. |
T |
addAsModule(String resourceName,
String targetPath)
Adds a resource to this Archives module context. |
T |
addAsModule(URL resource,
ArchivePath targetPath)
Adds a URL to this Archives module context. |
T |
addAsModule(URL resource,
String targetPath)
Adds a URL to this Archives module context. |
T |
addAsModules(Archive<?>... archives)
Adds the specified archives to this Archives module context. |
T |
addAsModules(File... resources)
Adds the specified Files to this Archives module context. |
T |
addAsModules(String... resourceNames)
Adds the specified resources to this Archives module context. |
T |
setApplicationXML(Asset resource)
Adds a Asset to this Archive as application.xml. |
T |
setApplicationXML(File resource)
Adds a File to this Archive as application.xml. |
T |
setApplicationXML(Package resourcePackage,
String resourceName)
Adds a resource inside the package to this Archive as application.xml. |
T |
setApplicationXML(String resourceName)
Adds a resource to this Archive as application.xml. |
T |
setApplicationXML(URL resource)
Adds a URL to this Archive as application.xml. |
| Method Detail |
|---|
T setApplicationXML(String resourceName)
throws IllegalArgumentException
Archive as application.xml. ClassLoader used to obtain the resource is up to the implementation.
resourceName - Name of the ClassLoader resource to add
IllegalArgumentException - if resourceName is nullsetApplicationXML(Asset)
T setApplicationXML(File resource)
throws IllegalArgumentException
File to this Archive as application.xml. File "test/example.xml" could be placed in "/META-INF/application.xml"
resource - File resource to add
IllegalArgumentException - if resource is nullsetApplicationXML(Asset)
T setApplicationXML(URL resource)
throws IllegalArgumentException
URL to this Archive as application.xml. URL "http://my.com/example.xml" could be placed in "/META-INF/application.xml"
resource - URL resource to add
IllegalArgumentException - if resource is nullsetApplicationXML(Asset)
T setApplicationXML(Asset resource)
throws IllegalArgumentException
Asset to this Archive as application.xml.
resource - Asset resource to add
IllegalArgumentException - if resource is null
T setApplicationXML(Package resourcePackage,
String resourceName)
throws IllegalArgumentException
Archive as application.xml. ClassLoader used to obtain the resource is up to the implementation.
resourcePackage - The package of the resourcesresourceName - The name of the resource inside resourcePackage
IllegalArgumentException - if resourcePackage is null
IllegalArgumentException - if resourceName is nullsetApplicationXML(String)
T addAsApplicationResource(String resourceName)
throws IllegalArgumentException
Archives application context. ClassLoader used to obtain the resource is up to the implementation.
resourceName - Name of the ClassLoader resource to add
IllegalArgumentException - if resourceName is nulladdAsApplicationResource(Asset, ArchivePath)
T addAsApplicationResource(File resource)
throws IllegalArgumentException
File to this Archives application context. File of "test/example.xml" could be placed in "/META-INF/test/example.xml"
resource - File resource to add
IllegalArgumentException - if resource is nulladdAsApplicationResource(Asset, ArchivePath)
T addAsApplicationResource(String resourceName,
String target)
throws IllegalArgumentException
Archives application context. ClassLoader used to obtain the resource is up to the implementation.
resourceName - Name of the ClassLoader resource to addtarget - The target relative to application path within the archive into which we'll place the resource
IllegalArgumentException - if resource is null
IllegalArgumentException - if target is nulladdAsApplicationResource(Asset, ArchivePath)
T addAsApplicationResource(File resource,
String target)
throws IllegalArgumentException
File to this Archives application context. File of "test/example.xml" and a target of "example/myexample.xml" could be placed in
"/META-INF/example/myexample.xml"
resource - File resource to addtarget - The target relative to application path within the archive into which we'll place the resource
IllegalArgumentException - if resource is null
IllegalArgumentException - if target is nulladdAsApplicationResource(Asset, ArchivePath)
T addAsApplicationResource(URL resource,
String target)
throws IllegalArgumentException
URL to this Archives application context. URL of "http://my.com/example.xml" and a target of "example/myexample.xml" could be placed
in "/META-INF/example/myexample.xml"
resource - URL resource to addtarget - The target relative to application path within the archive into which we'll place the resource
IllegalArgumentException - if resource is null
IllegalArgumentException - if target is nulladdAsApplicationResource(Asset, ArchivePath)
T addAsApplicationResource(Asset resource,
String target)
throws IllegalArgumentException
Asset to this Archives application context.
resource - Asset resource to addtarget - The target relative to application path within the archive into which we'll place the resource
IllegalArgumentException - if resource is null
IllegalArgumentException - if target is nulladdAsApplicationResource(Asset, ArchivePath)
T addAsApplicationResource(String resourceName,
ArchivePath target)
throws IllegalArgumentException
Archives application context. ClassLoader used to obtain the resource is up to the implementation.
resourceName - Name of the ClassLoader resource to addtarget - The target relative to application path within the archive into which we'll place the resource
IllegalArgumentException - if resourceName is null
IllegalArgumentException - if target is nulladdAsApplicationResource(Asset, ArchivePath)
T addAsApplicationResource(File resource,
ArchivePath target)
throws IllegalArgumentException
File to this Archives application context. File of "test/example.xml" and a target of "example/myexample.xml" could be placed in
"/META-INF/example/myexample.xml"
resource - File resource to addtarget - The target relative to application path within the archive into which we'll place the resource
IllegalArgumentException - if resource is null
IllegalArgumentException - if target is nulladdAsApplicationResource(Asset, ArchivePath)
T addAsApplicationResource(URL resource,
ArchivePath target)
throws IllegalArgumentException
URL to this Archives application context. File of "test/example.xml" and a target of "example/myexample.xml" could be placed in
"/META-INF/example/myexample.xml"
resource - URL resource to addtarget - The target relative to application path within the archive into which we'll place the resource
IllegalArgumentException - if resource is null
IllegalArgumentException - if target is nulladdAsApplicationResource(Asset, ArchivePath)
T addAsApplicationResource(Asset resource,
ArchivePath target)
throws IllegalArgumentException
Asset to this Archives application context.
resource - Asset resource to addtarget - The target relative to application path within the archive into which we'll place the resource
IllegalArgumentException - if resource is null
IllegalArgumentException - if target is null
T addAsApplicationResources(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 resoucePackage
IllegalArgumentException - if resourcePackage is null
IllegalArgumentException - if no resourceNames are specified or containing null
T addAsApplicationResource(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 resoucePackage
IllegalArgumentException - if resourcePackage is null
IllegalArgumentException - if resourceName is null
T addAsApplicationResource(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 container
IllegalArgumentException - if resourcePackage is null
IllegalArgumentException - if resourceName is null
IllegalArgumentException - if target is null
T addAsApplicationResource(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 container
IllegalArgumentException - if resourcePackage is null
IllegalArgumentException - if resourceName is null
IllegalArgumentException - if target is null
T addAsModule(Archive<?> archive)
throws IllegalArgumentException
Archives module context. Archive name is used as path.
archive - The archive to use
IllegalArgumentException - if archive is null
T addAsModules(Archive<?>... archives)
throws IllegalArgumentException
Archives module context. Archive names are used as paths.
archives - The archives to use
IllegalArgumentException - if not archives are specified
T addAsModule(String resourceName)
throws IllegalArgumentException
Archives module context.
resourceName - Name of the ClassLoader resource to add
IllegalArgumentException - if resourceName is nulladdAsModule(Asset, ArchivePath)
T addAsModules(String... resourceNames)
throws IllegalArgumentException
Archives module context.
resourceNames - Names of the ClassLoader resources to add
IllegalArgumentException - if resourceNames are not specifiedaddAsModule(Asset, ArchivePath)
T addAsModule(File resource)
throws IllegalArgumentException
File to this Archives module context. File name is used as path.
resource - File resource to add
IllegalArgumentException - if resource is nulladdAsModule(Asset, ArchivePath)
T addAsModules(File... resources)
throws IllegalArgumentException
Files to this Archives module context. File names are used as paths.
resources - File resources to add
IllegalArgumentException - if resources are not specifiedaddAsModule(Asset, ArchivePath)
T addAsModule(String resourceName,
String targetPath)
throws IllegalArgumentException
Archives module context.
resourceName - Name of the ClassLoader resource to addtargetPath - The target path within the archive in which to add the resource, relative to the Archives
module path.
IllegalArgumentException - if resourceName is null
IllegalArgumentException - if targetPath is nulladdAsModule(Asset, ArchivePath)
T addAsModule(File resource,
String targetPath)
throws IllegalArgumentException
File to this Archives module context.
resource - File resource to addtargetPath - The target path within the archive in which to add the resource, relative to the Archives
module path.
IllegalArgumentException - if resource is null
IllegalArgumentException - if targetPath is nulladdAsModule(Asset, ArchivePath)
T addAsModule(URL resource,
String targetPath)
throws IllegalArgumentException
URL to this Archives module context.
resource - URL resource to addtargetPath - The target path within the archive in which to add the resource, relative to the Archives
module path.
IllegalArgumentException - if resource is null
IllegalArgumentException - if targetPath is nulladdAsModule(Asset, ArchivePath)
T addAsModule(Asset resource,
String targetPath)
throws IllegalArgumentException
Asset to this Archives module context.
resource - Asset resource to addtargetPath - The target path within the archive in which to add the resource, relative to the Archives
module path.
IllegalArgumentException - if resource is null
IllegalArgumentException - if targetPath is nulladdAsModule(Asset, ArchivePath)
T addAsModule(String resourceName,
ArchivePath targetPath)
throws IllegalArgumentException
Archives module context.
resourceName - Name of the ClassLoader resource to addtargetPath - The target path within the archive in which to add the resource, relative to the Archives
module path.
IllegalArgumentException - if resourceName is null
IllegalArgumentException - if targetPath is nulladdAsModule(Asset, ArchivePath)
T addAsModule(File resource,
ArchivePath targetPath)
throws IllegalArgumentException
File to this Archives module context.
resource - File resource to addtargetPath - The target path within the archive in which to add the resource, relative to the Archives
module path.
IllegalArgumentException - if resource is null
IllegalArgumentException - if targetPath is nulladdAsModule(Asset, ArchivePath)
T addAsModule(URL resource,
ArchivePath targetPath)
throws IllegalArgumentException
URL to this Archives module context.
resource - URL resource to addtargetPath - The target path within the archive in which to add the resource, relative to the Archives
module path.
IllegalArgumentException - if resource is null
IllegalArgumentException - if targetPath is nulladdAsModule(Asset, ArchivePath)
T addAsModule(Asset resource,
ArchivePath targetPath)
throws IllegalArgumentException
Asset to this Archives module context.
resource - URL resource to addtargetPath - The target path within the archive in which to add the resource, relative to the Archives
module path.
IllegalArgumentException - if targetPath is null
IllegalArgumentException - if resource is null
|
ShrinkWrap API 1.1.0-alpha-2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||