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

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

public class ModelledResourceImpl
extends Object
implements org.apache.aries.application.modelling.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<org.apache.aries.application.modelling.ImportedService> importedServices, Collection<org.apache.aries.application.modelling.ExportedService> exportedServices)
          Construct a new ModelledResourceImpl for the following manifest and services
ModelledResourceImpl(String fileURI, Attributes bundleAttributes, org.apache.aries.application.modelling.ExportedBundle exportedBundle, org.apache.aries.application.modelling.ResourceType resourceType, Collection<org.apache.aries.application.modelling.ImportedService> importedServices, Collection<org.apache.aries.application.modelling.ExportedService> exportedServices)
          Construct a new ModelledResourceImpl for the following manifest and services
ModelledResourceImpl(String fileURI, Attributes bundleAttributes, org.apache.aries.application.modelling.ResourceType resourceType, org.apache.aries.application.modelling.ExportedBundle exportedBundle, Collection<org.apache.aries.application.modelling.ImportedService> importedServices, Collection<org.apache.aries.application.modelling.ExportedService> exportedServices)
           
ModelledResourceImpl(String fileURI, org.apache.aries.application.management.BundleInfo bundleInfo, Collection<org.apache.aries.application.modelling.ImportedService> importedServices, Collection<org.apache.aries.application.modelling.ExportedService> exportedServices)
          Construct a new ModelledResourceImpl for the following manifest and services
 
Method Summary
 org.apache.aries.application.modelling.ExportedBundle getExportedBundle()
           
 Collection<org.apache.aries.application.modelling.ExportedPackage> getExportedPackages()
           
 Collection<org.apache.aries.application.modelling.ExportedService> getExportedServices()
           
 org.apache.aries.application.modelling.ImportedBundle getFragmentHost()
           
 Collection<org.apache.aries.application.modelling.ImportedPackage> getImportedPackages()
           
 Collection<org.apache.aries.application.modelling.ImportedService> getImportedServices()
           
 String getLocation()
           
 Collection<org.apache.aries.application.modelling.ImportedBundle> getRequiredBundles()
           
 String getSymbolicName()
           
 org.apache.aries.application.modelling.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,
                            org.apache.aries.application.management.BundleInfo bundleInfo,
                            Collection<org.apache.aries.application.modelling.ImportedService> importedServices,
                            Collection<org.apache.aries.application.modelling.ExportedService> exportedServices)
                     throws org.apache.aries.application.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:
org.apache.aries.application.InvalidAttributeException

ModelledResourceImpl

public ModelledResourceImpl(String fileURI,
                            Attributes bundleAttributes,
                            org.apache.aries.application.modelling.ExportedBundle exportedBundle,
                            org.apache.aries.application.modelling.ResourceType resourceType,
                            Collection<org.apache.aries.application.modelling.ImportedService> importedServices,
                            Collection<org.apache.aries.application.modelling.ExportedService> exportedServices)
                     throws org.apache.aries.application.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:
org.apache.aries.application.InvalidAttributeException

ModelledResourceImpl

public ModelledResourceImpl(String fileURI,
                            Attributes bundleAttributes,
                            Collection<org.apache.aries.application.modelling.ImportedService> importedServices,
                            Collection<org.apache.aries.application.modelling.ExportedService> exportedServices)
                     throws org.apache.aries.application.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:
org.apache.aries.application.InvalidAttributeException

ModelledResourceImpl

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

getLocation

public String getLocation()
Specified by:
getLocation in interface org.apache.aries.application.modelling.ModelledResource

getExportedBundle

public org.apache.aries.application.modelling.ExportedBundle getExportedBundle()
Specified by:
getExportedBundle in interface org.apache.aries.application.modelling.ModelledResource

getExportedPackages

public Collection<org.apache.aries.application.modelling.ExportedPackage> getExportedPackages()
Specified by:
getExportedPackages in interface org.apache.aries.application.modelling.ModelledResource

getImportedPackages

public Collection<org.apache.aries.application.modelling.ImportedPackage> getImportedPackages()
Specified by:
getImportedPackages in interface org.apache.aries.application.modelling.ModelledResource

getExportedServices

public Collection<org.apache.aries.application.modelling.ExportedService> getExportedServices()
Specified by:
getExportedServices in interface org.apache.aries.application.modelling.ModelledResource

getImportedServices

public Collection<org.apache.aries.application.modelling.ImportedService> getImportedServices()
Specified by:
getImportedServices in interface org.apache.aries.application.modelling.ModelledResource

getSymbolicName

public String getSymbolicName()
Specified by:
getSymbolicName in interface org.apache.aries.application.modelling.ModelledResource

getVersion

public String getVersion()
Specified by:
getVersion in interface org.apache.aries.application.modelling.ModelledResource

toDeploymentString

public String toDeploymentString()
Specified by:
toDeploymentString in interface org.apache.aries.application.modelling.DeploymentMFElement

getType

public org.apache.aries.application.modelling.ResourceType getType()
Specified by:
getType in interface org.apache.aries.application.modelling.ModelledResource

toString

public String toString()
Overrides:
toString in class Object

getRequiredBundles

public Collection<org.apache.aries.application.modelling.ImportedBundle> getRequiredBundles()
Specified by:
getRequiredBundles in interface org.apache.aries.application.modelling.ModelledResource

getFragmentHost

public org.apache.aries.application.modelling.ImportedBundle getFragmentHost()
Specified by:
getFragmentHost in interface org.apache.aries.application.modelling.ModelledResource

isFragment

public boolean isFragment()
Specified by:
isFragment in interface org.apache.aries.application.modelling.ModelledResource


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