|
||||||||||
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<org.apache.aries.application.modelling.ImportedBundle> appContentNames,
Collection<org.apache.aries.application.modelling.ImportedBundle> appUseBundleNames,
Collection<org.apache.aries.application.modelling.ModelledResource> fakeServiceProvidingBundles)
Constructor for cases when we have one or more ' |
Method Summary | |
---|---|
void |
addBundle(org.apache.aries.application.modelling.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<org.apache.aries.application.modelling.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<org.apache.aries.application.modelling.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<org.apache.aries.application.modelling.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<org.apache.aries.application.modelling.ImportedBundle> appContentNames, Collection<org.apache.aries.application.modelling.ImportedBundle> appUseBundleNames, Collection<org.apache.aries.application.modelling.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(org.apache.aries.application.modelling.ModelledResource modelledBundle)
addBundle
in interface org.apache.aries.application.modelling.DeployedBundles
resolvedBundle
- the bundle that has been provisioned.resolvedVersion
- the specific version provisioned.public String getContent()
getContent
in interface org.apache.aries.application.modelling.DeployedBundles
public String getUseBundle()
getUseBundle
in interface org.apache.aries.application.modelling.DeployedBundles
public String getProvisionBundle()
getProvisionBundle
in interface org.apache.aries.application.modelling.DeployedBundles
public String getImportPackage() throws org.apache.aries.application.management.ResolverException
getImportPackage
in interface org.apache.aries.application.modelling.DeployedBundles
org.apache.aries.application.management.ResolverException
- if the requirements could not be resolved.public String getDeployedImportService()
getDeployedImportService
in interface org.apache.aries.application.modelling.DeployedBundles
public String toString()
toString
in interface org.apache.aries.application.modelling.DeployedBundles
toString
in class Object
public Collection<org.apache.aries.application.modelling.ModelledResource> getDeployedContent()
getDeployedContent
in interface org.apache.aries.application.modelling.DeployedBundles
public Collection<org.apache.aries.application.modelling.ModelledResource> getDeployedProvisionBundle()
getDeployedProvisionBundle
in interface org.apache.aries.application.modelling.DeployedBundles
public Collection<org.apache.aries.application.modelling.ModelledResource> getRequiredUseBundle() throws org.apache.aries.application.management.ResolverException
getRequiredUseBundle
in interface org.apache.aries.application.modelling.DeployedBundles
org.apache.aries.application.management.ResolverException
- if the requirements could not be resolved.public Map<String,String> getExtraHeaders()
getExtraHeaders
in interface org.apache.aries.application.modelling.DeployedBundles
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |