org.apache.aries.application.modelling
Interface DeployedBundles


public interface DeployedBundles

A model of a collection of bundles and similar resources


Method Summary
 void addBundle(ModelledResource modelledBundle)
          Add a modelled resource
 String getContent()
          Get the value corresponding to the Deployed-Content header in the deployment.mf.
 Collection<ModelledResource> getDeployedContent()
          Get the set of bundles that are going to be deployed into an isolated framework
 String getDeployedImportService()
          Get the Deployed-ImportService header.
 Collection<ModelledResource> getDeployedProvisionBundle()
          Get the set of bundles that map to Provision-Bundle: these plus getRequiredUseBundle combined give the bundles that will be provisioned into the shared bundle space 'getProvisionBundle' returns the manifest header string, so this method needs to be called something else.
 Map<String,String> getExtraHeaders()
          A local environment extension to Apache Aries may manipulate a DeployedBundles object.
 String getImportPackage()
          Get the value corresponding to the Import-Package header in the deployment.mf.
 String getProvisionBundle()
          Get the value corresponding to the Provision-Bundle header in the deployment.mf.
 Collection<ModelledResource> getRequiredUseBundle()
          Get the subset of bundles specified in use-bundle that are actually required to satisfy direct requirements of deployed content.
 String getUseBundle()
          Get the value corresponding to the Deployed-Use-Bundle header in the deployment.mf.
 String toString()
           
 

Method Detail

addBundle

void addBundle(ModelledResource modelledBundle)
Add a modelled resource


getContent

String getContent()
Get the value corresponding to the Deployed-Content header in the deployment.mf.

Returns:
a manifest entry, or an empty string if there is no content.

getUseBundle

String getUseBundle()
Get the value corresponding to the Deployed-Use-Bundle header in the deployment.mf.

Returns:
a manifest entry, or an empty string if there is no content.

getProvisionBundle

String getProvisionBundle()
Get the value corresponding to the Provision-Bundle header in the deployment.mf.

Returns:
a manifest entry, or an empty string if there is no content.

getImportPackage

String getImportPackage()
                        throws ResolverException
Get the value corresponding to the Import-Package header in the deployment.mf.

Returns:
a manifest entry, or an empty string if there is no content.
Throws:
ResolverException - if the requirements could not be resolved.

getDeployedImportService

String getDeployedImportService()
Get the Deployed-ImportService header. this.deployedImportService contains all the service import filters for every blueprint component within the application. We will only write an entry to Deployed-ImportService if a) the reference isMultiple(), or b) the service was not available internally when the app was first deployed


toString

String toString()
Overrides:
toString in class Object

getDeployedContent

Collection<ModelledResource> getDeployedContent()
Get the set of bundles that are going to be deployed into an isolated framework

Returns:
a set of bundle metadata

getDeployedProvisionBundle

Collection<ModelledResource> getDeployedProvisionBundle()
Get the set of bundles that map to Provision-Bundle: these plus getRequiredUseBundle combined give the bundles that will be provisioned into the shared bundle space 'getProvisionBundle' returns the manifest header string, so this method needs to be called something else.


getRequiredUseBundle

Collection<ModelledResource> getRequiredUseBundle()
                                                  throws ResolverException
Get the subset of bundles specified in use-bundle that are actually required to satisfy direct requirements of deployed content.

Returns:
a set of bundle metadata.
Throws:
ResolverException - if the requirements could not be resolved.

getExtraHeaders

Map<String,String> getExtraHeaders()
A local environment extension to Apache Aries may manipulate a DeployedBundles object. This method returns the extra headers and their values.

Returns:
the extra headers


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