|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EnterpriseContainer<T extends Archive<T>>
EnterpriseContainer
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 |
addApplicationResource(Asset resource,
ArchivePath target)
Adds a Asset to this Archive s application context. |
T |
addApplicationResource(Asset resource,
String target)
Adds a Asset to this Archive s application context. |
T |
addApplicationResource(File resource)
Adds a File to this Archive s application context. |
T |
addApplicationResource(File resource,
ArchivePath target)
Adds a File to this Archive s application context. |
T |
addApplicationResource(File resource,
String target)
Adds a File to this Archive s application context. |
T |
addApplicationResource(Package resourcePackage,
String resourceName)
Adds the resource as a resource to the container, returning the container itself. |
T |
addApplicationResource(Package resourcePackage,
String resourceName,
ArchivePath target)
Adds the resource as a resource to a specific path inside the container, returning the container itself. |
T |
addApplicationResource(Package resourcePackage,
String resourceName,
String target)
Adds the resource as a resource to a specific path inside the container, returning the container itself. |
T |
addApplicationResource(String resourceName)
Adds a resource to this Archive s application context. |
T |
addApplicationResource(String resourceName,
ArchivePath target)
Adds a resource to this Archive s application context. |
T |
addApplicationResource(String resourceName,
String target)
Adds a resource to this Archive s application context. |
T |
addApplicationResource(URL resource,
ArchivePath target)
Adds a URL to this Archive s application context. |
T |
addApplicationResource(URL resource,
String target)
Adds a URL to this Archive s application context. |
T |
addApplicationResources(Package resourcePackage,
String... resourceNames)
Adds the resources inside the package as multiple resources to the container, returning the container itself. |
T |
addModule(Archive<?> archive)
Adds a archive to this Archive s module context. |
T |
addModule(Asset resource,
ArchivePath targetPath)
Adds a Asset to this Archive s module context. |
T |
addModule(Asset resource,
String targetPath)
Adds a Asset to this Archive s module context. |
T |
addModule(File resource)
Adds a File to this Archive s module context. |
T |
addModule(File resource,
ArchivePath targetPath)
Adds a File to this Archive s module context. |
T |
addModule(File resource,
String targetPath)
Adds a File to this Archive s module context. |
T |
addModule(String resourceName)
Adds a resource to this Archive s module context. |
T |
addModule(String resourceName,
ArchivePath targetPath)
Adds a resource to this Archive s module context. |
T |
addModule(String resourceName,
String targetPath)
Adds a resource to this Archive s module context. |
T |
addModule(URL resource,
ArchivePath targetPath)
Adds a URL to this Archive s module context. |
T |
addModule(URL resource,
String targetPath)
Adds a URL to this Archive s 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(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 nullT addApplicationResource(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 add
IllegalArgumentException
- if resourceName is nulladdApplicationResource(Asset, ArchivePath)
T addApplicationResource(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 add
IllegalArgumentException
- if resource is nulladdApplicationResource(Asset, ArchivePath)
T addApplicationResource(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 resource
IllegalArgumentException
- if resource is null
IllegalArgumentException
- if target is nulladdApplicationResource(Asset, ArchivePath)
T addApplicationResource(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 resource
IllegalArgumentException
- if resource is null
IllegalArgumentException
- if target is nulladdApplicationResource(Asset, ArchivePath)
T addApplicationResource(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 resource
IllegalArgumentException
- if resource is null
IllegalArgumentException
- if target is nulladdApplicationResource(Asset, ArchivePath)
T addApplicationResource(Asset resource, String target) throws IllegalArgumentException
Asset
to this Archive
s 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 nulladdApplicationResource(Asset, ArchivePath)
T addApplicationResource(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 resource
IllegalArgumentException
- if resourceName is null
IllegalArgumentException
- if target is nulladdApplicationResource(Asset, ArchivePath)
T addApplicationResource(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 resource
IllegalArgumentException
- if resource is null
IllegalArgumentException
- if target is nulladdApplicationResource(Asset, ArchivePath)
T addApplicationResource(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 resource
IllegalArgumentException
- if resource is null
IllegalArgumentException
- if target is nulladdApplicationResource(Asset, ArchivePath)
T addApplicationResource(Asset resource, ArchivePath target) throws IllegalArgumentException
Asset
to this Archive
s 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 nullT addApplicationResources(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 nullT addApplicationResource(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 nullT addApplicationResource(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 nullT addApplicationResource(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 nullT addModule(Archive<?> archive) throws IllegalArgumentException
Archive
s module context.
Archive
name is used as path.
archive
- The archive to use
IllegalArgumentException
- if archive is nullT addModule(String resourceName) throws IllegalArgumentException
Archive
s module context.
resourceName
- Name of the ClassLoader
resource to add
IllegalArgumentException
- if resourceName is nulladdModule(Asset, ArchivePath)
T addModule(File resource) throws IllegalArgumentException
File
to this Archive
s module context.
File
name is used as path.
resource
- File
resource to add
IllegalArgumentException
- if resource is nulladdModule(Asset, ArchivePath)
T addModule(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 null
IllegalArgumentException
- if targetPath is nulladdModule(Asset, ArchivePath)
T addModule(File resource, String targetPath) throws IllegalArgumentException
File
to this Archive
s module context.
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 null
IllegalArgumentException
- if targetPath is nulladdModule(Asset, ArchivePath)
T addModule(URL resource, String targetPath) throws IllegalArgumentException
URL
to this Archive
s module context.
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 null
IllegalArgumentException
- if targetPath is nulladdModule(Asset, ArchivePath)
T addModule(Asset resource, String targetPath) throws IllegalArgumentException
Asset
to this Archive
s module context.
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 null
IllegalArgumentException
- if targetPath is nulladdModule(Asset, ArchivePath)
T addModule(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 null
IllegalArgumentException
- if targetPath is nulladdModule(Asset, ArchivePath)
T addModule(File resource, ArchivePath targetPath) throws IllegalArgumentException
File
to this Archive
s module context.
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 null
IllegalArgumentException
- if targetPath is nulladdModule(Asset, ArchivePath)
T addModule(URL resource, ArchivePath targetPath) throws IllegalArgumentException
URL
to this Archive
s module context.
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 null
IllegalArgumentException
- if targetPath is nulladdModule(Asset, ArchivePath)
T addModule(Asset resource, ArchivePath targetPath) throws IllegalArgumentException
Asset
to this Archive
s module context.
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 null
IllegalArgumentException
- if resource is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |