org.apache.aries.application.modelling.utils
Interface ModellingHelper


public interface ModellingHelper

Useful functions associated with application modelling


Method Summary
 boolean areMandatoryAttributesPresent(Map<String,String> consumerAttributes, Provider p)
          Check that all mandatory attributes from a Provider are specified by the consumer's attributes
 ImportedBundle buildFragmentHost(String fragmentHostHeader)
          Create an ImportedBundle from a Fragment-Host string
 DeployedBundles createDeployedBundles(String assetName, Collection<ImportedBundle> appContentNames, Collection<ImportedBundle> appUseBundleNames, Collection<ModelledResource> fakeServiceProvidingBundles)
          Factory method for objects implementing the DeployedBundles interface
 ImportedPackage intersectPackage(ImportedPackage p1, ImportedPackage p2)
          Create a new ImnportedPackage that is the intersection of the two supplied imports.
 

Method Detail

areMandatoryAttributesPresent

boolean areMandatoryAttributesPresent(Map<String,String> consumerAttributes,
                                      Provider p)
Check that all mandatory attributes from a Provider are specified by the consumer's attributes

Parameters:
consumerAttributes -
p -
Returns:
true if all mandatory attributes are present, or no attributes are mandatory

buildFragmentHost

ImportedBundle buildFragmentHost(String fragmentHostHeader)
                                 throws InvalidAttributeException
Create an ImportedBundle from a Fragment-Host string

Parameters:
fragmentHostHeader -
Returns:
the imported bundle
Throws:
InvalidAttributeException

intersectPackage

ImportedPackage intersectPackage(ImportedPackage p1,
                                 ImportedPackage p2)
Create a new ImnportedPackage that is the intersection of the two supplied imports.

Parameters:
p1 -
p2 -
Returns:
ImportedPackageImpl representing the intersection, or null. All attributes must match exactly.

createDeployedBundles

DeployedBundles createDeployedBundles(String assetName,
                                      Collection<ImportedBundle> appContentNames,
                                      Collection<ImportedBundle> appUseBundleNames,
                                      Collection<ModelledResource> fakeServiceProvidingBundles)
Factory method for objects implementing the DeployedBundles interface



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