org.apache.aries.application
Interface ApplicationMetadata


public interface ApplicationMetadata

A representation of an APPLICATION.MF file.


Method Summary
 List<Content> getApplicationContents()
          get the list of Application contents includes bundle name, version, directives and attributes
 List<ServiceDeclaration> getApplicationExportServices()
          get the value of the Export-Service header
 List<ServiceDeclaration> getApplicationImportServices()
          get the value of the Import-Service header
 String getApplicationName()
          get the name of the application
 String getApplicationScope()
          get the value of the Application-Scope, which is calculated from Application-SymbolicName and Application-Version
 String getApplicationSymbolicName()
          get the value of the Application-SymbolicName header
 Version getApplicationVersion()
          get the value of the Application-Version header
 Collection<Content> getUseBundles()
          get the list of use-bundle content including bundle symbolic name and version range
 void store(File f)
          Persist this metadata.
 void store(OutputStream out)
          Persist this metadata.
 

Method Detail

getApplicationSymbolicName

String getApplicationSymbolicName()
get the value of the Application-SymbolicName header

Returns:
the value of the Application-SymbolicName header

getApplicationVersion

Version getApplicationVersion()
get the value of the Application-Version header

Returns:
the value of the Application-Version header

getApplicationName

String getApplicationName()
get the name of the application

Returns:
the name of the application

getApplicationContents

List<Content> getApplicationContents()
get the list of Application contents includes bundle name, version, directives and attributes

Returns:
the list of the Application contents

getApplicationExportServices

List<ServiceDeclaration> getApplicationExportServices()
get the value of the Export-Service header

Returns:
the list of ServiceDeclaration

getApplicationImportServices

List<ServiceDeclaration> getApplicationImportServices()
get the value of the Import-Service header

Returns:
the list of ServiceDeclaration

getApplicationScope

String getApplicationScope()
get the value of the Application-Scope, which is calculated from Application-SymbolicName and Application-Version

Returns:
the value of the AppScope

getUseBundles

Collection<Content> getUseBundles()
get the list of use-bundle content including bundle symbolic name and version range

Returns:
the collection of use bundles.

store

void store(File f)
           throws IOException
Persist this metadata.

Parameters:
f - The file to store this metadata to
Throws:
IOException

store

void store(OutputStream out)
           throws IOException
Persist this metadata.

Parameters:
out - The output stream to store this metadata to
Throws:
IOException


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