|
ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.impl.base.AssignableBase<Archive<?>>
org.jboss.shrinkwrap.impl.base.container.ContainerBase<T>
org.jboss.shrinkwrap.impl.base.container.EnterpriseContainerBase<T>
T
- public abstract class EnterpriseContainerBase<T extends Archive<T>>
EnterpriseContainerSupport Abstract class that helps implement the EnterpriseContainer. Used by specs that extends the EnterpriseContainer.
Field Summary |
---|
Fields inherited from interface org.jboss.shrinkwrap.api.container.ManifestContainer |
---|
DEFAULT_MANIFEST_NAME |
Constructor Summary | |
---|---|
protected |
EnterpriseContainerBase(Class<T> actualType,
Archive<?> archive)
|
Method Summary | |
---|---|
T |
addAsApplicationResource(Asset resource,
ArchivePath target)
Adds a Asset to this Archive s application context. |
T |
addAsApplicationResource(Asset resource,
String target)
Adds a Asset to this Archive s application context. |
T |
addAsApplicationResource(File resource)
Adds a File to this Archive s application context. |
T |
addAsApplicationResource(File resource,
ArchivePath target)
Adds a File to this Archive s application context. |
T |
addAsApplicationResource(File resource,
String target)
Adds a File to this Archive s application context. |
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)
Adds a URL to this Archive s application context. |
T |
addAsApplicationResource(URL resource,
String target)
Adds a URL to this Archive s application context. |
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)
Adds a Asset to this Archive s module context. |
T |
addAsModule(Asset resource,
String targetPath)
Adds a Asset to this Archive s module context. |
T |
addAsModule(File resource)
Adds a File to this Archive s module context. |
T |
addAsModule(File resource,
ArchivePath targetPath)
Adds a File to this Archive s module context. |
T |
addAsModule(File resource,
String targetPath)
Adds a File to this Archive s module context. |
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)
Adds a URL to this Archive s module context. |
T |
addAsModule(URL resource,
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(File... resources)
Adds the specified File s to this Archive s module context. |
T |
addAsModules(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)
Adds a Asset to this Archive as application.xml. |
T |
setApplicationXML(File resource)
Adds a File to this Archive as application.xml. |
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)
Adds a URL to this Archive as application.xml. |
Methods inherited from class org.jboss.shrinkwrap.impl.base.AssignableBase |
---|
as, getArchive |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.shrinkwrap.api.Assignable |
---|
as |
Constructor Detail |
---|
protected EnterpriseContainerBase(Class<T> actualType, Archive<?> archive)
Method Detail |
---|
protected abstract ArchivePath getApplicationPath()
public T setApplicationXML(String resourceName) throws 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 add
IllegalArgumentException
- if resourceName is nullEnterpriseContainer.setApplicationXML(Asset)
public T setApplicationXML(File resource) throws 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 add
IllegalArgumentException
- if resource is nullEnterpriseContainer.setApplicationXML(Asset)
public T setApplicationXML(URL resource) throws 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 add
IllegalArgumentException
- if resource is nullEnterpriseContainer.setApplicationXML(Asset)
public T setApplicationXML(Asset resource) throws IllegalArgumentException
EnterpriseContainer
Asset
to this Archive
as application.xml.
setApplicationXML
in interface EnterpriseContainer<T extends Archive<T>>
resource
- Asset
resource to add
IllegalArgumentException
- if resource is nullpublic T setApplicationXML(Package resourcePackage, String resourceName) throws 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 resourcePackage
IllegalArgumentException
- if resourcePackage is nullEnterpriseContainer.setApplicationXML(String)
public T addAsApplicationResource(String resourceName) throws 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 add
IllegalArgumentException
- if resourceName is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)
public T addAsApplicationResource(File resource) throws 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 add
IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)
public T addAsApplicationResource(String resourceName, String target) throws 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 resource
IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)
public T addAsApplicationResource(File resource, String target) throws 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 resource
IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)
public T addAsApplicationResource(URL resource, String target) throws 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 resource
IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)
public T addAsApplicationResource(Asset resource, String target) throws IllegalArgumentException
EnterpriseContainer
Asset
to this Archive
s application context.
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 resource
IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)
public T addAsApplicationResource(String resourceName, ArchivePath target) throws 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 resource
IllegalArgumentException
- if resourceName is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)
public T addAsApplicationResource(File resource, ArchivePath target) throws 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 resource
IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)
public T addAsApplicationResource(URL resource, ArchivePath target) throws 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 resource
IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsApplicationResource(Asset, ArchivePath)
public T addAsApplicationResource(Asset resource, ArchivePath target) throws IllegalArgumentException
EnterpriseContainer
Asset
to this Archive
s application context.
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 resource
IllegalArgumentException
- if resource is nullpublic T addAsApplicationResources(Package resourcePackage, String... resourceNames) throws 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 resoucePackage
IllegalArgumentException
- if resourcePackage is nullpublic T addAsApplicationResource(Package resourcePackage, String resourceName) throws 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 resoucePackage
IllegalArgumentException
- if resourcePackage is nullpublic T addAsApplicationResource(Package resourcePackage, String resourceName, String target) throws 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 container
IllegalArgumentException
- if resourcePackage is nullpublic T addAsApplicationResource(Package resourcePackage, String resourceName, ArchivePath target) throws 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 container
IllegalArgumentException
- if resourcePackage is nullprotected abstract ArchivePath getModulePath()
public T addAsModule(Archive<?> archive) throws IllegalArgumentException
Archive
s module context.
Archive
name is used as path.
addAsModule
in interface EnterpriseContainer<T extends Archive<T>>
archive
- The archive to use
IllegalArgumentException
- if archive is nullEnterpriseContainer.addAsModule(org.jboss.shrinkwrap.api.Archive)
public T addAsModule(String resourceName)
Archive
s module context.
addAsModule
in interface EnterpriseContainer<T extends Archive<T>>
resourceName
- Name of the ClassLoader
resource to add
EnterpriseContainer.addAsModule(java.lang.String)
public T addAsModule(File resource) throws IllegalArgumentException
EnterpriseContainer
File
to this Archive
s module context.
File
name is used as path.
addAsModule
in interface EnterpriseContainer<T extends Archive<T>>
resource
- File
resource to add
IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)
public T addAsModules(Archive<?>... archives) throws IllegalArgumentException
Archive
s module context.
Archive
names are used as paths.
addAsModules
in interface EnterpriseContainer<T extends Archive<T>>
archives
- The archives to use
IllegalArgumentException
- if not archives are specifiedEnterpriseContainer.addAsModules(org.jboss.shrinkwrap.api.Archive>[])
public T addAsModules(String... resourceNames) throws IllegalArgumentException
Archive
s module context.
addAsModules
in interface EnterpriseContainer<T extends Archive<T>>
resourceNames
- Names of the ClassLoader
resources to add
IllegalArgumentException
- if resourceNames are not specifiedEnterpriseContainer.addAsModules(java.lang.String[])
public T addAsModules(File... resources) throws IllegalArgumentException
File
s to this Archive
s module context.
File
names are used as paths.
addAsModules
in interface EnterpriseContainer<T extends Archive<T>>
resources
- File
resources to add
IllegalArgumentException
- if resources are not specifiedEnterpriseContainer.addAsModules(java.io.File[])
public T addAsModule(File resource, ArchivePath targetPath) throws 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.
IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)
public T addAsModule(String resourceName, ArchivePath targetPath) throws 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.
IllegalArgumentException
- if resourceName is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)
public T addAsModule(URL resource, ArchivePath targetPath) throws 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.
IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)
public T addAsModule(File resource, String targetPath) throws 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.
IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)
public T addAsModule(Asset resource, String targetPath) throws IllegalArgumentException
EnterpriseContainer
Asset
to this Archive
s module context.
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.
IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)
public T addAsModule(String resourceName, String targetPath) throws 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.
IllegalArgumentException
- if resourceName is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)
public T addAsModule(URL resource, String targetPath) throws 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.
IllegalArgumentException
- if resource is nullEnterpriseContainer.addAsModule(Asset, ArchivePath)
public T addAsModule(Asset resource, ArchivePath targetPath) throws IllegalArgumentException
EnterpriseContainer
Asset
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.
IllegalArgumentException
- if targetPath is null
|
ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |