T
- public abstract class EnterpriseContainerBase<T extends Archive<T>> extends ContainerBase<T> implements EnterpriseContainer<T>
DEFAULT_MANIFEST_NAME
Modifier | Constructor and Description |
---|---|
protected |
EnterpriseContainerBase(java.lang.Class<T> actualType,
Archive<?> archive) |
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 Archive s application context. |
T |
addAsApplicationResource(java.io.File resource,
ArchivePath target)
Adds a
File to this Archive s application context. |
T |
addAsApplicationResource(java.io.File resource,
java.lang.String target)
Adds a
File to this Archive s 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
Archive s application context. |
T |
addAsApplicationResource(java.lang.String resourceName,
ArchivePath target)
Adds a resource to this
Archive s application context. |
T |
addAsApplicationResource(java.lang.String resourceName,
java.lang.String target)
Adds a resource to this
Archive s application context. |
T |
addAsApplicationResource(java.net.URL resource,
ArchivePath target)
Adds a
URL to this Archive s application context. |
T |
addAsApplicationResource(java.net.URL resource,
java.lang.String target)
Adds a
URL to this Archive s 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
Archive s 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 Archive s module context. |
T |
addAsModule(java.io.File resource,
ArchivePath targetPath)
Adds a
File to this Archive s module context. |
T |
addAsModule(java.io.File resource,
java.lang.String targetPath)
Adds a
File to this Archive s module context. |
T |
addAsModule(java.lang.String resourceName)
Adds a resource to this
Archive s module context. |
T |
addAsModule(java.lang.String resourceName,
ArchivePath targetPath)
Adds a resource to this
Archive s module context. |
T |
addAsModule(java.lang.String resourceName,
java.lang.String targetPath)
Adds a resource to this
Archive s module context. |
T |
addAsModule(java.net.URL resource,
ArchivePath targetPath)
Adds a
URL to this Archive s module context. |
T |
addAsModule(java.net.URL resource,
java.lang.String targetPath)
Adds a
URL to this Archive s module context. |
T |
addAsModules(Archive<?>... archives)
Adds the specified archives to this
Archive s module context. |
T |
addAsModules(java.io.File... resources)
Adds the specified
File s to this Archive s module context. |
T |
addAsModules(java.lang.String... resourceNames)
Adds the specified resources to this
Archive s module context. |
protected abstract ArchivePath |
getApplicationPath()
Should be implemented to set the path for Application related resources.
|
protected abstract ArchivePath |
getModulePath()
Should be implemented to set the path for Module related resources.
|
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. |
add, add, add, add, add, add, add, addAsDirectories, addAsDirectories, addAsDirectory, addAsDirectory, addAsLibraries, addAsLibraries, addAsLibraries, addAsLibraries, addAsLibraries, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResources, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResources, addAsServiceProvider, addAsServiceProvider, addAsServiceProviderAndClasses, addClass, addClass, addClass, addClasses, addDefaultPackage, addHandlers, addManifest, addPackage, addPackage, addPackages, addPackages, addPackages, addPackages, contains, contains, covarientReturn, delete, delete, deleteClass, deleteClass, deleteClasses, deleteDefaultPackage, deletePackage, deletePackage, deletePackages, deletePackages, deletePackages, deletePackages, equals, filter, get, get, getActualClass, getArchiveFormat, getAsType, getAsType, getAsType, getAsType, getAsType, getAsType, getClassesPath, getContent, getContent, getId, getLibraryPath, getManifestPath, getName, getResourcePath, hashCode, merge, merge, merge, merge, merge, merge, move, move, setManifest, setManifest, setManifest, setManifest, setManifest, shallowCopy, shallowCopy, toString, toString, toString, writeTo
as, getArchive
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
as
protected abstract ArchivePath getApplicationPath()
public T setApplicationXML(java.lang.String resourceName) throws java.lang.IllegalArgumentException
EnterpriseContainer
Archive
as application.xml. ClassLoader
used to obtain the resource is up to the implementation. setApplicationXML
in interface EnterpriseContainer<T extends Archive<T>>
resourceName
- Name of the ClassLoader
resource to addjava.lang.IllegalArgumentException
- if resourceName is nullEnterpriseContainer.setApplicationXML(Asset)
public T setApplicationXML(java.io.File resource) throws java.lang.IllegalArgumentException
EnterpriseContainer
File
to this Archive
as application.xml. File
"test/example.xml" could be placed in "/META-INF/application.xml"setApplicationXML
in interface EnterpriseContainer<T extends Archive<T>>
resource
- File
resource to addjava.lang.IllegalArgumentException
- if resource is nullEnterpriseContainer.setApplicationXML(Asset)
public T setApplicationXML(java.net.URL resource) throws java.lang.IllegalArgumentException
EnterpriseContainer
URL
to this Archive
as application.xml. URL
"http://my.com/example.xml" could be placed in "/META-INF/application.xml"setApplicationXML
in interface EnterpriseContainer<T extends Archive<T>>
resource
- URL
resource to addjava.lang.IllegalArgumentException
- if resource is nullEnterpriseContainer.setApplicationXML(Asset)
public T setApplicationXML(Asset resource) throws java.lang.IllegalArgumentException
EnterpriseContainer
setApplicationXML
in interface EnterpriseContainer<T extends Archive<T>>
resource
- Asset
resource to addjava.lang.IllegalArgumentException
- if resource is nullpublic T setApplicationXML(java.lang.Package resourcePackage, java.lang.String resourceName) throws java.lang.IllegalArgumentException
EnterpriseContainer
Archive
as application.xml. ClassLoader
used to obtain the resource is up to the implementation.setApplicationXML
in interface EnterpriseContainer<T extends Archive<T>>
resourcePackage
- The package of the resourcesresourceName
- The name of the resource inside resourcePackagejava.lang.IllegalArgumentException
- if resourcePackage is nullEnterpriseContainer.setApplicationXML(String)
public T addAsApplicationResource(java.lang.String resourceName) throws java.lang.IllegalArgumentException
EnterpriseContainer
Archive
s application context. ClassLoader
used to obtain the resource is up to the implementation. addAsApplicationResource
in interface EnterpriseContainer<T extends Archive<T>>
resourceName
- Name of the ClassLoader
resource to addjava.lang.IllegalArgumentException
- if resourceName is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)
public T addAsApplicationResource(java.io.File resource) throws java.lang.IllegalArgumentException
EnterpriseContainer
File
to this Archive
s application context. File
of "test/example.xml" could be placed in "/META-INF/test/example.xml"addAsApplicationResource
in interface EnterpriseContainer<T extends Archive<T>>
resource
- File
resource to addjava.lang.IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)
public T addAsApplicationResource(java.lang.String resourceName, java.lang.String target) throws java.lang.IllegalArgumentException
EnterpriseContainer
Archive
s application context. ClassLoader
used to obtain the resource is up to the implementation. addAsApplicationResource
in interface EnterpriseContainer<T extends Archive<T>>
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 nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)
public T addAsApplicationResource(java.io.File resource, java.lang.String target) throws java.lang.IllegalArgumentException
EnterpriseContainer
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"addAsApplicationResource
in interface EnterpriseContainer<T extends Archive<T>>
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 nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)
public T addAsApplicationResource(java.net.URL resource, java.lang.String target) throws java.lang.IllegalArgumentException
EnterpriseContainer
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"addAsApplicationResource
in interface EnterpriseContainer<T extends Archive<T>>
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 nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)
public T addAsApplicationResource(Asset resource, java.lang.String target) throws java.lang.IllegalArgumentException
EnterpriseContainer
addAsApplicationResource
in interface EnterpriseContainer<T extends Archive<T>>
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 nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)
public T addAsApplicationResource(java.lang.String resourceName, ArchivePath target) throws java.lang.IllegalArgumentException
EnterpriseContainer
Archive
s application context. ClassLoader
used to obtain the resource is up to the implementation. addAsApplicationResource
in interface EnterpriseContainer<T extends Archive<T>>
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 nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)
public T addAsApplicationResource(java.io.File resource, ArchivePath target) throws java.lang.IllegalArgumentException
EnterpriseContainer
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"addAsApplicationResource
in interface EnterpriseContainer<T extends Archive<T>>
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 nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)
public T addAsApplicationResource(java.net.URL resource, ArchivePath target) throws java.lang.IllegalArgumentException
EnterpriseContainer
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"addAsApplicationResource
in interface EnterpriseContainer<T extends Archive<T>>
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 nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)
public T addAsApplicationResource(Asset resource, ArchivePath target) throws java.lang.IllegalArgumentException
EnterpriseContainer
addAsApplicationResource
in interface EnterpriseContainer<T extends Archive<T>>
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 nullpublic T addAsApplicationResources(java.lang.Package resourcePackage, java.lang.String... resourceNames) throws java.lang.IllegalArgumentException
EnterpriseContainer
ClassLoader
used to obtain the resource is up to the implementation.addAsApplicationResources
in interface EnterpriseContainer<T extends Archive<T>>
resourcePackage
- The package of the resourcesresourceNames
- The names of the resources inside resoucePackagejava.lang.IllegalArgumentException
- if resourcePackage is nullpublic T addAsApplicationResource(java.lang.Package resourcePackage, java.lang.String resourceName) throws java.lang.IllegalArgumentException
EnterpriseContainer
ClassLoader
used to obtain the resource is up to the implementation.addAsApplicationResource
in interface EnterpriseContainer<T extends Archive<T>>
resourcePackage
- The package of the resourceresourceName
- The name of the resource inside resoucePackagejava.lang.IllegalArgumentException
- if resourcePackage is nullpublic T addAsApplicationResource(java.lang.Package resourcePackage, java.lang.String resourceName, java.lang.String target) throws java.lang.IllegalArgumentException
EnterpriseContainer
ClassLoader
used to obtain the resource is up to the implementation.addAsApplicationResource
in interface EnterpriseContainer<T extends Archive<T>>
resourcePackage
- The package of the resourceresourceName
- The name of the resource inside resoucePackagetarget
- The target location inside the containerjava.lang.IllegalArgumentException
- if resourcePackage is nullpublic T addAsApplicationResource(java.lang.Package resourcePackage, java.lang.String resourceName, ArchivePath target) throws java.lang.IllegalArgumentException
EnterpriseContainer
ClassLoader
used to obtain the resource is up to the implementation.addAsApplicationResource
in interface EnterpriseContainer<T extends Archive<T>>
resourcePackage
- The package of the resourceresourceName
- The name of the resource inside resoucePackagetarget
- The target location inside the containerjava.lang.IllegalArgumentException
- if resourcePackage is nullprotected abstract ArchivePath getModulePath()
public T addAsModule(Archive<?> archive) throws java.lang.IllegalArgumentException
addAsModule
in interface EnterpriseContainer<T extends Archive<T>>
archive
- The archive to usejava.lang.IllegalArgumentException
- if archive is nullEnterpriseContainer.addAsModule(org.jboss.shrinkwrap.api.Archive)
public T addAsModule(java.lang.String resourceName)
Archive
s module context. addAsModule
in interface EnterpriseContainer<T extends Archive<T>>
resourceName
- Name of the ClassLoader
resource to addEnterpriseContainer.addAsModule(java.lang.String)
public T addAsModule(java.io.File resource) throws java.lang.IllegalArgumentException
EnterpriseContainer
addAsModule
in interface EnterpriseContainer<T extends Archive<T>>
resource
- File
resource to addjava.lang.IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)
public T addAsModules(Archive<?>... archives) throws java.lang.IllegalArgumentException
addAsModules
in interface EnterpriseContainer<T extends Archive<T>>
archives
- The archives to usejava.lang.IllegalArgumentException
- if not archives are specifiedEnterpriseContainer.addAsModules(org.jboss.shrinkwrap.api.Archive<?>[])
public T addAsModules(java.lang.String... resourceNames) throws java.lang.IllegalArgumentException
Archive
s module context. addAsModules
in interface EnterpriseContainer<T extends Archive<T>>
resourceNames
- Names of the ClassLoader
resources to addjava.lang.IllegalArgumentException
- if resourceNames are not specifiedEnterpriseContainer.addAsModules(java.lang.String[])
public T addAsModules(java.io.File... resources) throws java.lang.IllegalArgumentException
addAsModules
in interface EnterpriseContainer<T extends Archive<T>>
resources
- File
resources to addjava.lang.IllegalArgumentException
- if resources are not specifiedEnterpriseContainer.addAsModules(java.io.File[])
public T addAsModule(java.io.File resource, ArchivePath targetPath) throws java.lang.IllegalArgumentException
EnterpriseContainer
File
to this Archive
s module context.addAsModule
in interface EnterpriseContainer<T extends Archive<T>>
resource
- File
resource to addtargetPath
- The target path within the archive in which to add the resource, relative to the Archive
s
module path.java.lang.IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)
public T addAsModule(java.lang.String resourceName, ArchivePath targetPath) throws java.lang.IllegalArgumentException
EnterpriseContainer
Archive
s module context.addAsModule
in interface EnterpriseContainer<T extends Archive<T>>
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.java.lang.IllegalArgumentException
- if resourceName is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)
public T addAsModule(java.net.URL resource, ArchivePath targetPath) throws java.lang.IllegalArgumentException
EnterpriseContainer
URL
to this Archive
s module context.addAsModule
in interface EnterpriseContainer<T extends Archive<T>>
resource
- URL
resource to addtargetPath
- The target path within the archive in which to add the resource, relative to the Archive
s
module path.java.lang.IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)
public T addAsModule(java.io.File resource, java.lang.String targetPath) throws java.lang.IllegalArgumentException
EnterpriseContainer
File
to this Archive
s module context.addAsModule
in interface EnterpriseContainer<T extends Archive<T>>
resource
- File
resource to addtargetPath
- The target path within the archive in which to add the resource, relative to the Archive
s
module path.java.lang.IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)
public T addAsModule(Asset resource, java.lang.String targetPath) throws java.lang.IllegalArgumentException
EnterpriseContainer
addAsModule
in interface EnterpriseContainer<T extends Archive<T>>
resource
- Asset
resource to addtargetPath
- The target path within the archive in which to add the resource, relative to the Archive
s
module path.java.lang.IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)
public T addAsModule(java.lang.String resourceName, java.lang.String targetPath) throws java.lang.IllegalArgumentException
EnterpriseContainer
Archive
s module context.addAsModule
in interface EnterpriseContainer<T extends Archive<T>>
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.java.lang.IllegalArgumentException
- if resourceName is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)
public T addAsModule(java.net.URL resource, java.lang.String targetPath) throws java.lang.IllegalArgumentException
EnterpriseContainer
URL
to this Archive
s module context.addAsModule
in interface EnterpriseContainer<T extends Archive<T>>
resource
- URL
resource to addtargetPath
- The target path within the archive in which to add the resource, relative to the Archive
s
module path.java.lang.IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)
public T addAsModule(Asset resource, ArchivePath targetPath) throws java.lang.IllegalArgumentException
EnterpriseContainer
addAsModule
in interface EnterpriseContainer<T extends Archive<T>>
resource
- URL
resource to addtargetPath
- The target path within the archive in which to add the resource, relative to the Archive
s
module path.java.lang.IllegalArgumentException
- if targetPath is null