|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.aries.application.modelling.impl.DeployedBundlesImpl
public final class DeployedBundlesImpl
Class to generate DEPLOYMENT.MF manifest entries for resolved bundles based on corresponding APPLICATION.MF entries.
| Constructor Summary | |
|---|---|
DeployedBundlesImpl(String assetName,
Collection<ImportedBundle> appContentNames,
Collection<ImportedBundle> appUseBundleNames,
Collection<ModelledResource> fakeServiceProvidingBundles)
Constructor for cases when we have one or more ' |
|
| Method Summary | |
|---|---|
void |
addBundle(ModelledResource modelledBundle)
Add provisioned version information for a specific bundle name. |
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()
This method will be overridden by a PostResolveTransformer returning an extended version of DeployedBundles |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DeployedBundlesImpl(String assetName,
Collection<ImportedBundle> appContentNames,
Collection<ImportedBundle> appUseBundleNames,
Collection<ModelledResource> fakeServiceProvidingBundles)
assetName - the name of the asset being deployed.appContentNames - the bundle names specified in Deployed-Content.appUseBundleNames - the bundle names specified in Deployed-Use-Bundle.fakeServiceProvidingBundles - bundles that we're pretending are part of the deployed content. Can be null.
These bundles are proxies for bundles provided (for example by SCA) that export
services matching Application-ImportService.| Method Detail |
|---|
public void addBundle(ModelledResource modelledBundle)
addBundle in interface DeployedBundlesresolvedBundle - the bundle that has been provisioned.resolvedVersion - the specific version provisioned.public String getContent()
getContent in interface DeployedBundlespublic String getUseBundle()
getUseBundle in interface DeployedBundlespublic String getProvisionBundle()
getProvisionBundle in interface DeployedBundles
public String getImportPackage()
throws ResolverException
getImportPackage in interface DeployedBundlesResolverException - if the requirements could not be resolved.public String getDeployedImportService()
getDeployedImportService in interface DeployedBundlespublic String toString()
toString in interface DeployedBundlestoString in class Objectpublic Collection<ModelledResource> getDeployedContent()
getDeployedContent in interface DeployedBundlespublic Collection<ModelledResource> getDeployedProvisionBundle()
getDeployedProvisionBundle in interface DeployedBundles
public Collection<ModelledResource> getRequiredUseBundle()
throws ResolverException
getRequiredUseBundle in interface DeployedBundlesResolverException - if the requirements could not be resolved.public Map<String,String> getExtraHeaders()
getExtraHeaders in interface DeployedBundles
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||