org.apache.aries.application
Interface DeploymentMetadata


public interface DeploymentMetadata

Represents the parsed contents of a DEPLOYMENT.MF file


Method Summary
 List<DeploymentContent> getApplicationDeploymentContents()
          get the value of the Deployed-Content header
 ApplicationMetadata getApplicationMetadata()
          Obtain the associated ApplicationMetadata.
 List<DeploymentContent> getApplicationProvisionBundles()
          get the value of the Provision-Bundle header
 String getApplicationSymbolicName()
          get the value of the Application-SymbolicName header
 Version getApplicationVersion()
          get the value of the Application-Version header
 Collection<Filter> getDeployedServiceImport()
          Get the list of DeployedService-Import
 Collection<DeploymentContent> getDeployedUseBundle()
          get the value of Deployed-UseBundle header
 Map<String,String> getHeaders()
          get the contents of deployment manifest in a map
 Collection<Content> getImportPackage()
          get the value of Import-Package
 void store(File f)
          Persist this metadata as Manifest-formatted text.
 void store(OutputStream out)
          Persist this metadata.
 

Method Detail

getApplicationSymbolicName

String getApplicationSymbolicName()
get the value of the Application-SymbolicName header

Returns:
the value of the Application-SymbolicName header

getApplicationVersion

Version getApplicationVersion()
get the value of the Application-Version header

Returns:
the value of the Application-Version header

getApplicationDeploymentContents

List<DeploymentContent> getApplicationDeploymentContents()
get the value of the Deployed-Content header

Returns:
the list of the deployed content

getApplicationProvisionBundles

List<DeploymentContent> getApplicationProvisionBundles()
get the value of the Provision-Bundle header

Returns:
the list of non-app bundles to provision.

getDeployedUseBundle

Collection<DeploymentContent> getDeployedUseBundle()
get the value of Deployed-UseBundle header

Returns:
the list of bundles to use from the deployment.

getImportPackage

Collection<Content> getImportPackage()
get the value of Import-Package

Returns:
all the packages to import from non-app content.

getDeployedServiceImport

Collection<Filter> getDeployedServiceImport()
Get the list of DeployedService-Import

Returns:
DeployedService-Import

getHeaders

Map<String,String> getHeaders()
get the contents of deployment manifest in a map

Returns:
the required feature map

getApplicationMetadata

ApplicationMetadata getApplicationMetadata()
Obtain the associated ApplicationMetadata.

Returns:
The application metadata.

store

void store(File f)
           throws IOException
Persist this metadata as Manifest-formatted text.

Parameters:
f - The file to store this metadata to
Throws:
IOException

store

void store(OutputStream out)
           throws IOException
Persist this metadata.

Parameters:
out - The OutputStream to store this metadata to.
Throws:
IOException


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.