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,
String target)
|
T |
addAsApplicationResource(File resource)
|
T |
addAsApplicationResource(File resource,
ArchivePath target)
|
T |
addAsApplicationResource(File resource,
String target)
|
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
Archive s application context. |
T |
addAsApplicationResource(String resourceName,
ArchivePath target)
Adds a resource to this
Archive s application context. |
T |
addAsApplicationResource(String resourceName,
String target)
Adds a resource to this
Archive s application context. |
T |
addAsApplicationResource(URL resource,
ArchivePath target)
|
T |
addAsApplicationResource(URL resource,
String target)
|
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
Archive s module context. |
T |
addAsModule(Asset resource,
ArchivePath targetPath)
|
T |
addAsModule(Asset resource,
String targetPath)
|
T |
addAsModule(File resource)
|
T |
addAsModule(File resource,
ArchivePath targetPath)
|
T |
addAsModule(File resource,
String targetPath)
|
T |
addAsModule(String resourceName)
Adds a resource to this
Archive s module context. |
T |
addAsModule(String resourceName,
ArchivePath targetPath)
Adds a resource to this
Archive s module context. |
T |
addAsModule(String resourceName,
String targetPath)
Adds a resource to this
Archive s module context. |
T |
addAsModule(URL resource,
ArchivePath targetPath)
|
T |
addAsModule(URL resource,
String targetPath)
|
T |
addAsModules(Archive<?>... archives)
Adds the specified archives to this
Archive s module context. |
T |
addAsModules(File... resources)
|
T |
addAsModules(String... resourceNames)
Adds the specified resources to this
Archive s module context. |
T |
setApplicationXML(Asset resource)
|
T |
setApplicationXML(File resource)
|
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)
|
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 addIllegalArgumentException
- 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 addIllegalArgumentException
- 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 addIllegalArgumentException
- if resource is nullsetApplicationXML(Asset)
T setApplicationXML(Asset resource) throws IllegalArgumentException
resource
- Asset
resource to addIllegalArgumentException
- if resource is nullT 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 resourcePackageIllegalArgumentException
- if resourcePackage is nullIllegalArgumentException
- if resourceName is nullsetApplicationXML(String)
T addAsApplicationResource(String resourceName) throws IllegalArgumentException
Archive
s application context. ClassLoader
used to obtain the resource is up to the implementation. resourceName
- Name of the ClassLoader
resource to addIllegalArgumentException
- if resourceName is nulladdAsApplicationResource(Asset, ArchivePath)
T addAsApplicationResource(File resource) throws IllegalArgumentException
File
to this Archive
s application context. File
of "test/example.xml" could be placed in "/META-INF/test/example.xml"resource
- File
resource to addIllegalArgumentException
- if resource is nulladdAsApplicationResource(Asset, ArchivePath)
T addAsApplicationResource(String resourceName, String target) throws IllegalArgumentException
Archive
s 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 resourceIllegalArgumentException
- if resource is nullIllegalArgumentException
- if target is nulladdAsApplicationResource(Asset, ArchivePath)
T addAsApplicationResource(File resource, String target) throws IllegalArgumentException
File
to this Archive
s 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 resourceIllegalArgumentException
- if resource is nullIllegalArgumentException
- if target is nulladdAsApplicationResource(Asset, ArchivePath)
T addAsApplicationResource(URL resource, String target) throws IllegalArgumentException
URL
to this Archive
s 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 resourceIllegalArgumentException
- if resource is nullIllegalArgumentException
- if target is nulladdAsApplicationResource(Asset, ArchivePath)
T addAsApplicationResource(Asset resource, String target) throws IllegalArgumentException
resource
- Asset
resource to addtarget
- The target relative to application path within the archive into which we'll place the resourceIllegalArgumentException
- if resource is nullIllegalArgumentException
- if target is nulladdAsApplicationResource(Asset, ArchivePath)
T addAsApplicationResource(String resourceName, ArchivePath target) throws IllegalArgumentException
Archive
s 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 resourceIllegalArgumentException
- if resourceName is nullIllegalArgumentException
- if target is nulladdAsApplicationResource(Asset, ArchivePath)
T addAsApplicationResource(File resource, ArchivePath target) throws IllegalArgumentException
File
to this Archive
s 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 resourceIllegalArgumentException
- if resource is nullIllegalArgumentException
- if target is nulladdAsApplicationResource(Asset, ArchivePath)
T addAsApplicationResource(URL resource, ArchivePath target) throws IllegalArgumentException
URL
to this Archive
s 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 resourceIllegalArgumentException
- if resource is nullIllegalArgumentException
- if target is nulladdAsApplicationResource(Asset, ArchivePath)
T addAsApplicationResource(Asset resource, ArchivePath target) throws IllegalArgumentException
resource
- Asset
resource to addtarget
- The target relative to application path within the archive into which we'll place the resourceIllegalArgumentException
- if resource is nullIllegalArgumentException
- if target is nullT 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 resoucePackageIllegalArgumentException
- if resourcePackage is nullIllegalArgumentException
- if no resourceNames are specified or containing nullT 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 resoucePackageIllegalArgumentException
- if resourcePackage is nullIllegalArgumentException
- if resourceName is nullT 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 containerIllegalArgumentException
- if resourcePackage is nullIllegalArgumentException
- if resourceName is nullIllegalArgumentException
- if target is nullT 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 containerIllegalArgumentException
- if resourcePackage is nullIllegalArgumentException
- if resourceName is nullIllegalArgumentException
- if target is nullT addAsModule(Archive<?> archive) throws IllegalArgumentException
archive
- The archive to useIllegalArgumentException
- if archive is nullT addAsModules(Archive<?>... archives) throws IllegalArgumentException
archives
- The archives to useIllegalArgumentException
- if not archives are specifiedT addAsModule(String resourceName) throws IllegalArgumentException
Archive
s module context. resourceName
- Name of the ClassLoader
resource to addIllegalArgumentException
- if resourceName is nulladdAsModule(Asset, ArchivePath)
T addAsModules(String... resourceNames) throws IllegalArgumentException
Archive
s module context. resourceNames
- Names of the ClassLoader
resources to addIllegalArgumentException
- if resourceNames are not specifiedaddAsModule(Asset, ArchivePath)
T addAsModule(File resource) throws IllegalArgumentException
resource
- File
resource to addIllegalArgumentException
- if resource is nulladdAsModule(Asset, ArchivePath)
T addAsModules(File... resources) throws IllegalArgumentException
resources
- File
resources to addIllegalArgumentException
- if resources are not specifiedaddAsModule(Asset, ArchivePath)
T addAsModule(String resourceName, String targetPath) throws IllegalArgumentException
Archive
s 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 Archive
s
module path.IllegalArgumentException
- if resourceName is nullIllegalArgumentException
- if targetPath is nulladdAsModule(Asset, ArchivePath)
T addAsModule(File resource, String targetPath) throws IllegalArgumentException
resource
- File
resource to addtargetPath
- The target path within the archive in which to add the resource, relative to the Archive
s
module path.IllegalArgumentException
- if resource is nullIllegalArgumentException
- if targetPath is nulladdAsModule(Asset, ArchivePath)
T addAsModule(URL resource, String targetPath) throws IllegalArgumentException
resource
- URL
resource to addtargetPath
- The target path within the archive in which to add the resource, relative to the Archive
s
module path.IllegalArgumentException
- if resource is nullIllegalArgumentException
- if targetPath is nulladdAsModule(Asset, ArchivePath)
T addAsModule(Asset resource, String targetPath) throws IllegalArgumentException
resource
- Asset
resource to addtargetPath
- The target path within the archive in which to add the resource, relative to the Archive
s
module path.IllegalArgumentException
- if resource is nullIllegalArgumentException
- if targetPath is nulladdAsModule(Asset, ArchivePath)
T addAsModule(String resourceName, ArchivePath targetPath) throws IllegalArgumentException
Archive
s 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 Archive
s
module path.IllegalArgumentException
- if resourceName is nullIllegalArgumentException
- if targetPath is nulladdAsModule(Asset, ArchivePath)
T addAsModule(File resource, ArchivePath targetPath) throws IllegalArgumentException
resource
- File
resource to addtargetPath
- The target path within the archive in which to add the resource, relative to the Archive
s
module path.IllegalArgumentException
- if resource is nullIllegalArgumentException
- if targetPath is nulladdAsModule(Asset, ArchivePath)
T addAsModule(URL resource, ArchivePath targetPath) throws IllegalArgumentException
resource
- URL
resource to addtargetPath
- The target path within the archive in which to add the resource, relative to the Archive
s
module path.IllegalArgumentException
- if resource is nullIllegalArgumentException
- if targetPath is nulladdAsModule(Asset, ArchivePath)
T addAsModule(Asset resource, ArchivePath targetPath) throws IllegalArgumentException
resource
- URL
resource to addtargetPath
- The target path within the archive in which to add the resource, relative to the Archive
s
module path.IllegalArgumentException
- if targetPath is nullIllegalArgumentException
- if resource is nullCopyright © 2016 JBoss by Red Hat. All rights reserved.