|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- public interface ManifestContainer<T extends Archive<T>>
Defines the contract for a component capable of storing Manifest related resources.
The actual path to the Manifest resources within the Archive
is up to the implementations/specifications.
Field Summary | |
---|---|
static String |
DEFAULT_MANIFEST_NAME
|
Method Summary | |
---|---|
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.FM to the container, returning the container itself. |
T |
setManifest(File resource)
Adds the File as MANIFEST.FM 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.FM to the container, returning the container itself. |
T |
setManifest(URL resource)
Adds the URL as MANIFEST.FM to the container, returning the container itself. |
Field Detail |
---|
static final String DEFAULT_MANIFEST_NAME
Method Detail |
---|
T setManifest(String resourceName) throws IllegalArgumentException
ClassLoader
used to obtain the resource is up to the implementation.
resourceName
- resource to add
IllegalArgumentException
- if resourceName is nullsetManifest(Asset)
T setManifest(File resource) throws IllegalArgumentException
File
as MANIFEST.FM to the container, returning the container itself.
resource
- File
resource to add
IllegalArgumentException
- if resource is nullsetManifest(Asset)
T setManifest(URL resource) throws IllegalArgumentException
URL
as MANIFEST.FM to the container, returning the container itself.
resource
- URL
resource to add
IllegalArgumentException
- if resource is nullsetManifest(Asset)
T setManifest(Asset resource) throws IllegalArgumentException
Asset
as MANIFEST.FM to the container, returning the container itself.
resource
- File
resource to add
IllegalArgumentException
- 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 resoucePackage
IllegalArgumentException
- if resourcePackage is null
IllegalArgumentException
- if resourceName is nullT addAsManifestResource(String resourceName) throws IllegalArgumentException
ClassLoader
used to obtain the resource is up to the implementation.
resourceName
- resource to add
IllegalArgumentException
- if resourceName is null
IllegalArgumentException
- 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 add
IllegalArgumentException
- if File
resource is null
IllegalArgumentException
- 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 Archive
s
manifest path.
IllegalArgumentException
- if resourceName is null
IllegalArgumentException
- 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 Archive
s
manifest path.
IllegalArgumentException
- if resource is null
IllegalArgumentException
- 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 Archive
s
manifest path.
IllegalArgumentException
- if resource is null
IllegalArgumentException
- 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 Archive
s
manifest path.
IllegalArgumentException
- if resource is null
IllegalArgumentException
- 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 Archive
s
manifest path.
IllegalArgumentException
- if resourceName is null
IllegalArgumentException
- 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 Archive
s
manifest path.
IllegalArgumentException
- if resource is null
IllegalArgumentException
- 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 Archive
s
manifest path.
IllegalArgumentException
- if resource is null
IllegalArgumentException
- 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 Archive
s
manifest path.
IllegalArgumentException
- if resource is null
IllegalArgumentException
- 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 resoucePackage
IllegalArgumentException
- if resourcePackage is null
IllegalArgumentException
- 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 resoucePackage
IllegalArgumentException
- if resourcePackage is null
IllegalArgumentException
- 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 resoucePackagetarget
- The target location inside the container
IllegalArgumentException
- if resourcePackage is null
IllegalArgumentException
- if resourceName is null
IllegalArgumentException
- 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 resoucePackagetarget
- The target location inside the container
IllegalArgumentException
- if resourcePackage is null
IllegalArgumentException
- if resourceName is null
IllegalArgumentException
- 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 Implementations
IllegalArgumentException
- if serviceInterface is null
IllegalArgumentException
- 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 names
IllegalArgumentException
- if serviceInterface is null
IllegalArgumentException
- if serviceImpls is null or contain null valuesaddAsServiceProvider(Class, Class...)
T addManifest() throws IllegalArgumentException
IllegalArgumentException
- if serviceInterface is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |