T - public interface ManifestContainer<T extends Archive<T>>
Archive is up to the implementations/specifications.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_MANIFEST_NAME |
| Modifier and Type | Method and Description |
|---|---|
T |
addAsManifestResource(Asset resource,
ArchivePath target)
Adds the
Asset as a Manifest resource to the container, returning the container itself. |
T |
addAsManifestResource(Asset resource,
String target)
Adds the
Asset as a Manifest resource to the container, returning the container itself. |
T |
addAsManifestResource(File resource)
Adds the
File as a Manifest resource to the container, returning the container itself. |
T |
addAsManifestResource(File resource,
ArchivePath target)
Adds the
File as a Manifest resource to the container, returning the container itself. |
T |
addAsManifestResource(File resource,
String target)
Adds the
File as a Manifest resource to the container, returning the container itself. |
T |
addAsManifestResource(Package resourcePackage,
String resourceName)
Adds the resource as a resource to the container, returning the container itself.
|
T |
addAsManifestResource(Package resourcePackage,
String resourceName,
ArchivePath target)
Adds the resource as a resource to a specific path inside the container, returning the container itself.
|
T |
addAsManifestResource(Package resourcePackage,
String resourceName,
String target)
Adds the resource as a resource to a specific path inside the container, returning the container itself.
|
T |
addAsManifestResource(String resourceName)
Adds the resource as a Manifest resource to the container, returning the container itself.
|
T |
addAsManifestResource(String resourceName,
ArchivePath target)
Adds the resource as a Manifest resource to the container, returning the container itself.
|
T |
addAsManifestResource(String resourceName,
String target)
Adds the resource as a Manifest resource to the container, returning the container itself.
|
T |
addAsManifestResource(URL resource,
ArchivePath target)
Adds the
URL as a Manifest resource to the container, returning the container itself. |
T |
addAsManifestResource(URL resource,
String target)
Adds the
URL as a Manifest resource to the container, returning the container itself. |
T |
addAsManifestResources(Package resourcePackage,
String... resourceNames)
Adds the resources inside the package as multiple resources to the container, returning the container itself.
|
T |
addAsServiceProvider(Class<?> serviceInterface,
Class<?>... serviceImpls)
Adds a META-INF/services/ServiceInterfaceName
Asset representing this service. |
T |
addAsServiceProvider(String serviceInterface,
String... serviceImpls)
Adds a META-INF/services/ServiceInterfaceName
Asset representing this service. |
T |
addManifest()
Adds a default generated MANIFEST.MF manifest to the current archive.
|
T |
setManifest(Asset resource)
Adds the
Asset as MANIFEST.MF to the container, returning the container itself. |
T |
setManifest(File resource)
Adds the
File as MANIFEST.MF to the container, returning the container itself. |
T |
setManifest(Package resourcePackage,
String resourceName)
Adds the resource inside the package as a MANIFEST.MF to the container, returning the container itself.
|
T |
setManifest(String resourceName)
Adds the resource as MANIFEST.MF to the container, returning the container itself.
|
T |
setManifest(URL resource)
Adds the
URL as MANIFEST.MF to the container, returning the container itself. |
static final String DEFAULT_MANIFEST_NAME
T setManifest(String resourceName) throws IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourceName - resource to addIllegalArgumentException - if resourceName is nullsetManifest(Asset)T setManifest(File resource) throws IllegalArgumentException
File as MANIFEST.MF to the container, returning the container itself.resource - File resource to addIllegalArgumentException - if resource is nullsetManifest(Asset)T setManifest(URL resource) throws IllegalArgumentException
URL as MANIFEST.MF to the container, returning the container itself.resource - URL resource to addIllegalArgumentException - if resource is nullsetManifest(Asset)T setManifest(Asset resource) throws IllegalArgumentException
Asset as MANIFEST.MF to the container, returning the container itself.resource - File resource to addIllegalArgumentException - if resource is nulladdAsManifestResource(Asset, ArchivePath)T setManifest(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 resourcePackageIllegalArgumentException - if resourcePackage is nullIllegalArgumentException - if resourceName is nullT addAsManifestResource(String resourceName) throws IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourceName - resource to addIllegalArgumentException - if resourceName is nullIllegalArgumentException - if target is nullT addAsManifestResource(File resource) throws IllegalArgumentException
File as a Manifest resource to the container, returning the container itself. File will be placed into the Container Manifest path under File.getName().resource - resource to addIllegalArgumentException - if File resource is nullIllegalArgumentException - if target is nulladdAsManifestResource(Asset, ArchivePath)T addAsManifestResource(String resourceName, String target) throws IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourceName - resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
manifest path.IllegalArgumentException - if resourceName is nullIllegalArgumentException - if target is nulladdAsManifestResource(Asset, ArchivePath)T addAsManifestResource(File resource, String target) throws IllegalArgumentException
File as a Manifest resource to the container, returning the container itself.resource - File resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
manifest path.IllegalArgumentException - if resource is nullIllegalArgumentException - if target is nulladdAsManifestResource(Asset, ArchivePath)T addAsManifestResource(URL resource, String target) throws IllegalArgumentException
URL as a Manifest resource to the container, returning the container itself.resource - URL resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
manifest path.IllegalArgumentException - if resource is nullIllegalArgumentException - if target is nulladdAsManifestResource(Asset, ArchivePath)T addAsManifestResource(Asset resource, String target) throws IllegalArgumentException
Asset as a Manifest resource to the container, returning the container itself.resource - Asset resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
manifest path.IllegalArgumentException - if resource is nullIllegalArgumentException - if target is nulladdAsManifestResource(Asset, ArchivePath)T addAsManifestResource(String resourceName, ArchivePath target) throws IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourceName - resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
manifest path.IllegalArgumentException - if resourceName is nullIllegalArgumentException - if target is nulladdAsManifestResource(Asset, ArchivePath)T addAsManifestResource(File resource, ArchivePath target) throws IllegalArgumentException
File as a Manifest resource to the container, returning the container itself.resource - File resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
manifest path.IllegalArgumentException - if resource is nullIllegalArgumentException - if target is nulladdAsManifestResource(Asset, ArchivePath)T addAsManifestResource(URL resource, ArchivePath target) throws IllegalArgumentException
URL as a Manifest resource to the container, returning the container itself.resource - URL resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
manifest path.IllegalArgumentException - if resource is nullIllegalArgumentException - if target is nulladdAsManifestResource(Asset, ArchivePath)T addAsManifestResource(Asset resource, ArchivePath target) throws IllegalArgumentException
Asset as a Manifest resource to the container, returning the container itself.resource - Asset resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
manifest path.IllegalArgumentException - if resource is nullIllegalArgumentException - if target is nullT addAsManifestResources(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 resourcePackageIllegalArgumentException - if resourcePackage is nullIllegalArgumentException - if no resourceNames are specified or containing nullT addAsManifestResource(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 resourcePackageIllegalArgumentException - if resourcePackage is nullIllegalArgumentException - if resourceName is nullT addAsManifestResource(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 resourcePackagetarget - The target location inside the containerIllegalArgumentException - if resourcePackage is nullIllegalArgumentException - if resourceName is nullIllegalArgumentException - if target is nullT addAsManifestResource(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 resourcePackagetarget - The target location inside the containerIllegalArgumentException - if resourcePackage is nullIllegalArgumentException - if resourceName is nullIllegalArgumentException - if target is nullT addAsServiceProvider(Class<?> serviceInterface, Class<?>... serviceImpls) throws IllegalArgumentException
Asset representing this service.
Warning: this method does not add the specified classes to the archive.
serviceInterface - The Service Interface classserviceImpls - The Service Interface ImplementationsIllegalArgumentException - if serviceInterface is nullIllegalArgumentException - if serviceImpls is null or contain null valuesT addAsServiceProvider(String serviceInterface, String... serviceImpls)
Asset representing this service.serviceInterface - The Service Interface class nameserviceImpls - The Service Interface Implementations class namesIllegalArgumentException - if serviceInterface is nullIllegalArgumentException - if serviceImpls is null or contain null valuesaddAsServiceProvider(Class, Class...)T addManifest() throws IllegalArgumentException
IllegalArgumentException - if serviceInterface is nullCopyright © 2024 JBoss by Red Hat. All rights reserved.