public interface EnterpriseContainer<T extends Archive<T>>
Archive is up to the implementations/specifications.| Modifier and Type | Method and Description |
|---|---|
T |
addAsApplicationResource(Asset resource,
ArchivePath target)
|
T |
addAsApplicationResource(Asset resource,
java.lang.String target)
|
T |
addAsApplicationResource(java.io.File resource)
Adds a
File to this Archives application context. |
T |
addAsApplicationResource(java.io.File resource,
ArchivePath target)
Adds a
File to this Archives application context. |
T |
addAsApplicationResource(java.io.File resource,
java.lang.String target)
Adds a
File to this Archives application context. |
T |
addAsApplicationResource(java.lang.Package resourcePackage,
java.lang.String resourceName)
Adds the resource as a resource to the container, returning the container itself.
|
T |
addAsApplicationResource(java.lang.Package resourcePackage,
java.lang.String resourceName,
ArchivePath target)
Adds the resource as a resource to a specific path inside the container, returning the container itself.
|
T |
addAsApplicationResource(java.lang.Package resourcePackage,
java.lang.String resourceName,
java.lang.String target)
Adds the resource as a resource to a specific path inside the container, returning the container itself.
|
T |
addAsApplicationResource(java.lang.String resourceName)
Adds a resource to this
Archives application context. |
T |
addAsApplicationResource(java.lang.String resourceName,
ArchivePath target)
Adds a resource to this
Archives application context. |
T |
addAsApplicationResource(java.lang.String resourceName,
java.lang.String target)
Adds a resource to this
Archives application context. |
T |
addAsApplicationResource(java.net.URL resource,
ArchivePath target)
Adds a
URL to this Archives application context. |
T |
addAsApplicationResource(java.net.URL resource,
java.lang.String target)
Adds a
URL to this Archives application context. |
T |
addAsApplicationResources(java.lang.Package resourcePackage,
java.lang.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)
|
T |
addAsModule(Asset resource,
java.lang.String targetPath)
|
T |
addAsModule(java.io.File resource)
Adds a
File to this Archives module context. |
T |
addAsModule(java.io.File resource,
ArchivePath targetPath)
Adds a
File to this Archives module context. |
T |
addAsModule(java.io.File resource,
java.lang.String targetPath)
Adds a
File to this Archives module context. |
T |
addAsModule(java.lang.String resourceName)
Adds a resource to this
Archives module context. |
T |
addAsModule(java.lang.String resourceName,
ArchivePath targetPath)
Adds a resource to this
Archives module context. |
T |
addAsModule(java.lang.String resourceName,
java.lang.String targetPath)
Adds a resource to this
Archives module context. |
T |
addAsModule(java.net.URL resource,
ArchivePath targetPath)
Adds a
URL to this Archives module context. |
T |
addAsModule(java.net.URL resource,
java.lang.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(java.io.File... resources)
Adds the specified
Files to this Archives module context. |
T |
addAsModules(java.lang.String... resourceNames)
Adds the specified resources to this
Archives module context. |
T |
setApplicationXML(Asset resource)
|
T |
setApplicationXML(java.io.File resource)
Adds a
File to this Archive as application.xml. |
T |
setApplicationXML(java.lang.Package resourcePackage,
java.lang.String resourceName)
Adds a resource inside the package to this
Archive as application.xml. |
T |
setApplicationXML(java.lang.String resourceName)
Adds a resource to this
Archive as application.xml. |
T |
setApplicationXML(java.net.URL resource)
Adds a
URL to this Archive as application.xml. |
T setApplicationXML(java.lang.String resourceName) throws java.lang.IllegalArgumentException
Archive as application.xml. ClassLoader used to obtain the resource is up to the implementation. resourceName - Name of the ClassLoader resource to addjava.lang.IllegalArgumentException - if resourceName is nullsetApplicationXML(Asset)T setApplicationXML(java.io.File resource) throws java.lang.IllegalArgumentException
File to this Archive as application.xml. File "test/example.xml" could be placed in "/META-INF/application.xml"resource - File resource to addjava.lang.IllegalArgumentException - if resource is nullsetApplicationXML(Asset)T setApplicationXML(java.net.URL resource) throws java.lang.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 addjava.lang.IllegalArgumentException - if resource is nullsetApplicationXML(Asset)T setApplicationXML(Asset resource) throws java.lang.IllegalArgumentException
resource - Asset resource to addjava.lang.IllegalArgumentException - if resource is nullT setApplicationXML(java.lang.Package resourcePackage, java.lang.String resourceName) throws java.lang.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 resourcePackagejava.lang.IllegalArgumentException - if resourcePackage is nulljava.lang.IllegalArgumentException - if resourceName is nullsetApplicationXML(String)T addAsApplicationResource(java.lang.String resourceName) throws java.lang.IllegalArgumentException
Archives application context. ClassLoader used to obtain the resource is up to the implementation. resourceName - Name of the ClassLoader resource to addjava.lang.IllegalArgumentException - if resourceName is nulladdAsApplicationResource(Asset, ArchivePath)T addAsApplicationResource(java.io.File resource) throws java.lang.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 addjava.lang.IllegalArgumentException - if resource is nulladdAsApplicationResource(Asset, ArchivePath)T addAsApplicationResource(java.lang.String resourceName, java.lang.String target) throws java.lang.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 resourcejava.lang.IllegalArgumentException - if resource is nulljava.lang.IllegalArgumentException - if target is nulladdAsApplicationResource(Asset, ArchivePath)T addAsApplicationResource(java.io.File resource, java.lang.String target) throws java.lang.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 resourcejava.lang.IllegalArgumentException - if resource is nulljava.lang.IllegalArgumentException - if target is nulladdAsApplicationResource(Asset, ArchivePath)T addAsApplicationResource(java.net.URL resource, java.lang.String target) throws java.lang.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 resourcejava.lang.IllegalArgumentException - if resource is nulljava.lang.IllegalArgumentException - if target is nulladdAsApplicationResource(Asset, ArchivePath)T addAsApplicationResource(Asset resource, java.lang.String target) throws java.lang.IllegalArgumentException
resource - Asset resource to addtarget - The target relative to application path within the archive into which we'll place the resourcejava.lang.IllegalArgumentException - if resource is nulljava.lang.IllegalArgumentException - if target is nulladdAsApplicationResource(Asset, ArchivePath)T addAsApplicationResource(java.lang.String resourceName, ArchivePath target) throws java.lang.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 resourcejava.lang.IllegalArgumentException - if resourceName is nulljava.lang.IllegalArgumentException - if target is nulladdAsApplicationResource(Asset, ArchivePath)T addAsApplicationResource(java.io.File resource, ArchivePath target) throws java.lang.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 resourcejava.lang.IllegalArgumentException - if resource is nulljava.lang.IllegalArgumentException - if target is nulladdAsApplicationResource(Asset, ArchivePath)T addAsApplicationResource(java.net.URL resource, ArchivePath target) throws java.lang.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 resourcejava.lang.IllegalArgumentException - if resource is nulljava.lang.IllegalArgumentException - if target is nulladdAsApplicationResource(Asset, ArchivePath)T addAsApplicationResource(Asset resource, ArchivePath target) throws java.lang.IllegalArgumentException
resource - Asset resource to addtarget - The target relative to application path within the archive into which we'll place the resourcejava.lang.IllegalArgumentException - if resource is nulljava.lang.IllegalArgumentException - if target is nullT addAsApplicationResources(java.lang.Package resourcePackage, java.lang.String... resourceNames) throws java.lang.IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourcePackage - The package of the resourcesresourceNames - The names of the resources inside resoucePackagejava.lang.IllegalArgumentException - if resourcePackage is nulljava.lang.IllegalArgumentException - if no resourceNames are specified or containing nullT addAsApplicationResource(java.lang.Package resourcePackage, java.lang.String resourceName) throws java.lang.IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourcePackage - The package of the resourceresourceName - The name of the resource inside resoucePackagejava.lang.IllegalArgumentException - if resourcePackage is nulljava.lang.IllegalArgumentException - if resourceName is nullT addAsApplicationResource(java.lang.Package resourcePackage, java.lang.String resourceName, java.lang.String target) throws java.lang.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 containerjava.lang.IllegalArgumentException - if resourcePackage is nulljava.lang.IllegalArgumentException - if resourceName is nulljava.lang.IllegalArgumentException - if target is nullT addAsApplicationResource(java.lang.Package resourcePackage, java.lang.String resourceName, ArchivePath target) throws java.lang.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 containerjava.lang.IllegalArgumentException - if resourcePackage is nulljava.lang.IllegalArgumentException - if resourceName is nulljava.lang.IllegalArgumentException - if target is nullT addAsModule(Archive<?> archive) throws java.lang.IllegalArgumentException
archive - The archive to usejava.lang.IllegalArgumentException - if archive is nullT addAsModules(Archive<?>... archives) throws java.lang.IllegalArgumentException
archives - The archives to usejava.lang.IllegalArgumentException - if not archives are specifiedT addAsModule(java.lang.String resourceName) throws java.lang.IllegalArgumentException
Archives module context. resourceName - Name of the ClassLoader resource to addjava.lang.IllegalArgumentException - if resourceName is nulladdAsModule(Asset, ArchivePath)T addAsModules(java.lang.String... resourceNames) throws java.lang.IllegalArgumentException
Archives module context. resourceNames - Names of the ClassLoader resources to addjava.lang.IllegalArgumentException - if resourceNames are not specifiedaddAsModule(Asset, ArchivePath)T addAsModule(java.io.File resource) throws java.lang.IllegalArgumentException
resource - File resource to addjava.lang.IllegalArgumentException - if resource is nulladdAsModule(Asset, ArchivePath)T addAsModules(java.io.File... resources) throws java.lang.IllegalArgumentException
resources - File resources to addjava.lang.IllegalArgumentException - if resources are not specifiedaddAsModule(Asset, ArchivePath)T addAsModule(java.lang.String resourceName, java.lang.String targetPath) throws java.lang.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.java.lang.IllegalArgumentException - if resourceName is nulljava.lang.IllegalArgumentException - if targetPath is nulladdAsModule(Asset, ArchivePath)T addAsModule(java.io.File resource, java.lang.String targetPath) throws java.lang.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.java.lang.IllegalArgumentException - if resource is nulljava.lang.IllegalArgumentException - if targetPath is nulladdAsModule(Asset, ArchivePath)T addAsModule(java.net.URL resource, java.lang.String targetPath) throws java.lang.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.java.lang.IllegalArgumentException - if resource is nulljava.lang.IllegalArgumentException - if targetPath is nulladdAsModule(Asset, ArchivePath)T addAsModule(Asset resource, java.lang.String targetPath) throws java.lang.IllegalArgumentException
resource - Asset resource to addtargetPath - The target path within the archive in which to add the resource, relative to the Archives
module path.java.lang.IllegalArgumentException - if resource is nulljava.lang.IllegalArgumentException - if targetPath is nulladdAsModule(Asset, ArchivePath)T addAsModule(java.lang.String resourceName, ArchivePath targetPath) throws java.lang.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.java.lang.IllegalArgumentException - if resourceName is nulljava.lang.IllegalArgumentException - if targetPath is nulladdAsModule(Asset, ArchivePath)T addAsModule(java.io.File resource, ArchivePath targetPath) throws java.lang.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.java.lang.IllegalArgumentException - if resource is nulljava.lang.IllegalArgumentException - if targetPath is nulladdAsModule(Asset, ArchivePath)T addAsModule(java.net.URL resource, ArchivePath targetPath) throws java.lang.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.java.lang.IllegalArgumentException - if resource is nulljava.lang.IllegalArgumentException - if targetPath is nulladdAsModule(Asset, ArchivePath)T addAsModule(Asset resource, ArchivePath targetPath) throws java.lang.IllegalArgumentException
resource - URL resource to addtargetPath - The target path within the archive in which to add the resource, relative to the Archives
module path.java.lang.IllegalArgumentException - if targetPath is nulljava.lang.IllegalArgumentException - if resource is null