org.apache.aries.application.modelling
Interface ModelledResource

All Superinterfaces:
DeploymentMFElement

public interface ModelledResource
extends DeploymentMFElement

Model a bundle resource.


Method Summary
 ExportedBundle getExportedBundle()
          Return the bundle that represents the resource object.
 Collection<? extends ExportedPackage> getExportedPackages()
          Export-Package header modelled to be a collection of exported package objects.
 Collection<? extends ExportedService> getExportedServices()
          Export-Service header modelled to be a collection of exported service objects.
 ImportedBundle getFragmentHost()
          The fragment host.
 Collection<? extends ImportedPackage> getImportedPackages()
          Import-Package header modelled to be a collection of the imported packages objects.
 Collection<? extends ImportedService> getImportedServices()
          Import-Service header modelled to be a collection of imported service objects.
 String getLocation()
          Returns a String which can be turned into a URL to the bundle binary
 Collection<? extends ImportedBundle> getRequiredBundles()
          The required bundles modelled as a collection of ImportedBundle objects.
 String getSymbolicName()
          The resource's symbolic name
 ResourceType getType()
          The resource type, mainly BUNDLE or other special bundle.
 String getVersion()
          The resource version
 boolean isFragment()
          Whether the resource is fragment.
 
Methods inherited from interface org.apache.aries.application.modelling.DeploymentMFElement
toDeploymentString
 

Method Detail

getSymbolicName

String getSymbolicName()
The resource's symbolic name

Returns:
The resource symbolic name

getVersion

String getVersion()
The resource version

Returns:
The resource version

getLocation

String getLocation()
Returns a String which can be turned into a URL to the bundle binary

Returns:
the location of the bundle

getImportedPackages

Collection<? extends ImportedPackage> getImportedPackages()
Import-Package header modelled to be a collection of the imported packages objects.

Returns:
a collection of the imported packages.

getImportedServices

Collection<? extends ImportedService> getImportedServices()
Import-Service header modelled to be a collection of imported service objects. This contains the blueprint service referenced by this resource.

Returns:
a collection of the imported services.

getExportedPackages

Collection<? extends ExportedPackage> getExportedPackages()
Export-Package header modelled to be a collection of exported package objects.

Returns:
a collection of exported package objects.

getExportedServices

Collection<? extends ExportedService> getExportedServices()
Export-Service header modelled to be a collection of exported service objects. This includes the blueprint services supported by this resource.

Returns:
a collection of exported service objects.

getExportedBundle

ExportedBundle getExportedBundle()
Return the bundle that represents the resource object.

Returns:
the exported bundle

getType

ResourceType getType()
The resource type, mainly BUNDLE or other special bundle.

Returns:
The resource type.

getRequiredBundles

Collection<? extends ImportedBundle> getRequiredBundles()
The required bundles modelled as a collection of ImportedBundle objects.

Returns:
a collection of ImportedBundle objects.

isFragment

boolean isFragment()
Whether the resource is fragment.

Returns:
true if it is a fragment.

getFragmentHost

ImportedBundle getFragmentHost()
The fragment host.

Returns:
The fragment host.


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