org.apache.aries.application.modelling.impl
Class ModelledResourceImpl

java.lang.Object
  extended by org.apache.aries.application.modelling.impl.ModelledResourceImpl
All Implemented Interfaces:
DeploymentMFElement, ModelledResource

public class ModelledResourceImpl
extends Object
implements ModelledResource

A model of a bundle or composite. Used for example to supply information to RepositoryGenerator.generateRepository()


Constructor Summary
ModelledResourceImpl(String fileURI, Attributes bundleAttributes, Collection<ImportedService> importedServices, Collection<ExportedService> exportedServices)
          Construct a new ModelledResourceImpl for the following manifest and services
ModelledResourceImpl(String fileURI, Attributes bundleAttributes, ExportedBundle exportedBundle, ResourceType resourceType, Collection<ImportedService> importedServices, Collection<ExportedService> exportedServices)
          Construct a new ModelledResourceImpl for the following manifest and services
ModelledResourceImpl(String fileURI, Attributes bundleAttributes, ResourceType resourceType, ExportedBundle exportedBundle, Collection<ImportedService> importedServices, Collection<ExportedService> exportedServices)
           
ModelledResourceImpl(String fileURI, BundleInfo bundleInfo, Collection<ImportedService> importedServices, Collection<ExportedService> exportedServices)
          Construct a new ModelledResourceImpl for the following manifest and services
 
Method Summary
 ExportedBundle getExportedBundle()
           
 Collection<ExportedPackage> getExportedPackages()
           
 Collection<ExportedService> getExportedServices()
           
 ImportedBundle getFragmentHost()
           
 Collection<ImportedPackage> getImportedPackages()
           
 Collection<ImportedService> getImportedServices()
           
 String getLocation()
           
 Collection<ImportedBundle> getRequiredBundles()
           
 String getSymbolicName()
           
 ResourceType getType()
           
 String getVersion()
           
 boolean isFragment()
           
 String toDeploymentString()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModelledResourceImpl

public ModelledResourceImpl(String fileURI,
                            BundleInfo bundleInfo,
                            Collection<ImportedService> importedServices,
                            Collection<ExportedService> exportedServices)
                     throws InvalidAttributeException
Construct a new ModelledResourceImpl for the following manifest and services

Parameters:
fileURI - The location of the bundle, may be null, which indicates a by value bundle
bundleInfo - The bundle info object
importedServices - The blueprint references defined by the bundle. May be null
exportedServices - The blueprint services exported by the bundle. May be null
Throws:
InvalidAttributeException

ModelledResourceImpl

public ModelledResourceImpl(String fileURI,
                            Attributes bundleAttributes,
                            ExportedBundle exportedBundle,
                            ResourceType resourceType,
                            Collection<ImportedService> importedServices,
                            Collection<ExportedService> exportedServices)
                     throws InvalidAttributeException
Construct a new ModelledResourceImpl for the following manifest and services

Parameters:
fileURI - The location of the bundle, may be null, which indicates a by value bundle
bundleAttributes - The bundle manifest, must not be null
importedServices - The blueprint references defined by the bundle. May be null
exportedServices - The blueprint services exported by the bundle. May be null
Throws:
InvalidAttributeException

ModelledResourceImpl

public ModelledResourceImpl(String fileURI,
                            Attributes bundleAttributes,
                            Collection<ImportedService> importedServices,
                            Collection<ExportedService> exportedServices)
                     throws InvalidAttributeException
Construct a new ModelledResourceImpl for the following manifest and services

Parameters:
fileURI - The location of the bundle, may be null, which indicates a by value bundle
bundleAttributes - The bundle manifest, must not be null
importedServices - The blueprint references defined by the bundle. May be null
exportedServices - The blueprint services exported by the bundle. May be null
Throws:
InvalidAttributeException

ModelledResourceImpl

public ModelledResourceImpl(String fileURI,
                            Attributes bundleAttributes,
                            ResourceType resourceType,
                            ExportedBundle exportedBundle,
                            Collection<ImportedService> importedServices,
                            Collection<ExportedService> exportedServices)
                     throws InvalidAttributeException
Throws:
InvalidAttributeException
Method Detail

getLocation

public String getLocation()
Specified by:
getLocation in interface ModelledResource

getExportedBundle

public ExportedBundle getExportedBundle()
Specified by:
getExportedBundle in interface ModelledResource

getExportedPackages

public Collection<ExportedPackage> getExportedPackages()
Specified by:
getExportedPackages in interface ModelledResource

getImportedPackages

public Collection<ImportedPackage> getImportedPackages()
Specified by:
getImportedPackages in interface ModelledResource

getExportedServices

public Collection<ExportedService> getExportedServices()
Specified by:
getExportedServices in interface ModelledResource

getImportedServices

public Collection<ImportedService> getImportedServices()
Specified by:
getImportedServices in interface ModelledResource

getSymbolicName

public String getSymbolicName()
Specified by:
getSymbolicName in interface ModelledResource

getVersion

public String getVersion()
Specified by:
getVersion in interface ModelledResource

toDeploymentString

public String toDeploymentString()
Specified by:
toDeploymentString in interface DeploymentMFElement

getType

public ResourceType getType()
Specified by:
getType in interface ModelledResource

toString

public String toString()
Overrides:
toString in class Object

getRequiredBundles

public Collection<ImportedBundle> getRequiredBundles()
Specified by:
getRequiredBundles in interface ModelledResource

getFragmentHost

public ImportedBundle getFragmentHost()
Specified by:
getFragmentHost in interface ModelledResource

isFragment

public boolean isFragment()
Specified by:
isFragment in interface ModelledResource


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