T - public abstract class EnterpriseContainerBase<T extends Archive<T>> extends ContainerBase<T> implements EnterpriseContainer<T>
DEFAULT_MANIFEST_NAME| Modifier | Constructor and Description |
|---|---|
protected |
EnterpriseContainerBase(Class<T> actualType,
Archive<?> archive) |
| 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
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)
|
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
Archives 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
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)
|
T |
addAsModule(URL resource,
String targetPath)
|
T |
addAsModules(Archive<?>... archives)
Adds the specified archives to this
Archives module context. |
T |
addAsModules(File... resources)
|
T |
addAsModules(String... resourceNames)
Adds the specified resources to this
Archives 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(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)
|
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, writeToas, getArchiveclone, finalize, getClass, notify, notifyAll, wait, wait, waitasprotected abstract ArchivePath getApplicationPath()
public T setApplicationXML(String resourceName) throws IllegalArgumentException
EnterpriseContainerArchive 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 addIllegalArgumentException - if resourceName is nullEnterpriseContainer.setApplicationXML(Asset)public T setApplicationXML(File resource) throws IllegalArgumentException
EnterpriseContainerFile 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 addIllegalArgumentException - if resource is nullEnterpriseContainer.setApplicationXML(Asset)public T setApplicationXML(URL resource) throws IllegalArgumentException
EnterpriseContainerURL 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 addIllegalArgumentException - if resource is nullEnterpriseContainer.setApplicationXML(Asset)public T setApplicationXML(Asset resource) throws IllegalArgumentException
EnterpriseContainersetApplicationXML in interface EnterpriseContainer<T extends Archive<T>>resource - Asset resource to addIllegalArgumentException - if resource is nullpublic T setApplicationXML(Package resourcePackage, String resourceName) throws IllegalArgumentException
EnterpriseContainerArchive 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 resourcePackageIllegalArgumentException - if resourcePackage is nullEnterpriseContainer.setApplicationXML(String)public T addAsApplicationResource(String resourceName) throws IllegalArgumentException
EnterpriseContainerArchives 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 addIllegalArgumentException - if resourceName is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)public T addAsApplicationResource(File resource) throws IllegalArgumentException
EnterpriseContainerFile to this Archives 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 addIllegalArgumentException - if resource is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)public T addAsApplicationResource(String resourceName, String target) throws IllegalArgumentException
EnterpriseContainerArchives 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 resourceIllegalArgumentException - if resource is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)public T addAsApplicationResource(File resource, String target) throws IllegalArgumentException
EnterpriseContainerFile 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"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 resourceIllegalArgumentException - if resource is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)public T addAsApplicationResource(URL resource, String target) throws IllegalArgumentException
EnterpriseContainerURL 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"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 resourceIllegalArgumentException - if resource is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)public T addAsApplicationResource(Asset resource, String target) throws IllegalArgumentException
EnterpriseContaineraddAsApplicationResource 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 resourceIllegalArgumentException - if resource is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)public T addAsApplicationResource(String resourceName, ArchivePath target) throws IllegalArgumentException
EnterpriseContainerArchives 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 resourceIllegalArgumentException - if resourceName is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)public T addAsApplicationResource(File resource, ArchivePath target) throws IllegalArgumentException
EnterpriseContainerFile 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"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 resourceIllegalArgumentException - if resource is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)public T addAsApplicationResource(URL resource, ArchivePath target) throws IllegalArgumentException
EnterpriseContainerURL 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"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 resourceIllegalArgumentException - if resource is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)public T addAsApplicationResource(Asset resource, ArchivePath target) throws IllegalArgumentException
EnterpriseContaineraddAsApplicationResource 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 resourceIllegalArgumentException - if resource is nullpublic T addAsApplicationResources(Package resourcePackage, String... resourceNames) throws IllegalArgumentException
EnterpriseContainerClassLoader 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 resoucePackageIllegalArgumentException - if resourcePackage is nullpublic T addAsApplicationResource(Package resourcePackage, String resourceName) throws IllegalArgumentException
EnterpriseContainerClassLoader 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 resoucePackageIllegalArgumentException - if resourcePackage is nullpublic T addAsApplicationResource(Package resourcePackage, String resourceName, String target) throws IllegalArgumentException
EnterpriseContainerClassLoader 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 containerIllegalArgumentException - if resourcePackage is nullpublic T addAsApplicationResource(Package resourcePackage, String resourceName, ArchivePath target) throws IllegalArgumentException
EnterpriseContainerClassLoader 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 containerIllegalArgumentException - if resourcePackage is nullprotected abstract ArchivePath getModulePath()
public T addAsModule(Archive<?> archive) throws IllegalArgumentException
addAsModule in interface EnterpriseContainer<T extends Archive<T>>archive - The archive to useIllegalArgumentException - if archive is nullEnterpriseContainer.addAsModule(org.jboss.shrinkwrap.api.Archive)public T addAsModule(String resourceName)
Archives 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(File resource) throws IllegalArgumentException
EnterpriseContaineraddAsModule in interface EnterpriseContainer<T extends Archive<T>>resource - File resource to addIllegalArgumentException - if resource is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)public T addAsModules(Archive<?>... archives) throws IllegalArgumentException
addAsModules in interface EnterpriseContainer<T extends Archive<T>>archives - The archives to useIllegalArgumentException - if not archives are specifiedEnterpriseContainer.addAsModules(org.jboss.shrinkwrap.api.Archive<?>[])public T addAsModules(String... resourceNames) throws IllegalArgumentException
Archives module context. addAsModules in interface EnterpriseContainer<T extends Archive<T>>resourceNames - Names of the ClassLoader resources to addIllegalArgumentException - if resourceNames are not specifiedEnterpriseContainer.addAsModules(java.lang.String[])public T addAsModules(File... resources) throws IllegalArgumentException
addAsModules in interface EnterpriseContainer<T extends Archive<T>>resources - File resources to addIllegalArgumentException - if resources are not specifiedEnterpriseContainer.addAsModules(java.io.File[])public T addAsModule(File resource, ArchivePath targetPath) throws IllegalArgumentException
EnterpriseContaineraddAsModule 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 Archives
module path.IllegalArgumentException - if resource is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)public T addAsModule(String resourceName, ArchivePath targetPath) throws IllegalArgumentException
EnterpriseContainerArchives 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 Archives
module path.IllegalArgumentException - if resourceName is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)public T addAsModule(URL resource, ArchivePath targetPath) throws IllegalArgumentException
EnterpriseContaineraddAsModule 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 Archives
module path.IllegalArgumentException - if resource is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)public T addAsModule(File resource, String targetPath) throws IllegalArgumentException
EnterpriseContaineraddAsModule 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 Archives
module path.IllegalArgumentException - if resource is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)public T addAsModule(Asset resource, String targetPath) throws IllegalArgumentException
EnterpriseContaineraddAsModule 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 Archives
module path.IllegalArgumentException - if resource is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)public T addAsModule(String resourceName, String targetPath) throws IllegalArgumentException
EnterpriseContainerArchives 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 Archives
module path.IllegalArgumentException - if resourceName is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)public T addAsModule(URL resource, String targetPath) throws IllegalArgumentException
EnterpriseContaineraddAsModule 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 Archives
module path.IllegalArgumentException - if resource is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)public T addAsModule(Asset resource, ArchivePath targetPath) throws IllegalArgumentException
EnterpriseContaineraddAsModule 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 Archives
module path.IllegalArgumentException - if targetPath is nullCopyright © 2024 JBoss by Red Hat. All rights reserved.