org.apache.aries.application.impl
Class ApplicationMetadataImpl

java.lang.Object
  extended by org.apache.aries.application.impl.ApplicationMetadataImpl
All Implemented Interfaces:
ApplicationMetadata

public final class ApplicationMetadataImpl
extends Object
implements ApplicationMetadata

Implementation of ApplicationMetadata and DeploymentMetadata


Constructor Summary
ApplicationMetadataImpl(Manifest appManifest)
          create the applicationMetadata from appManifest
 
Method Summary
 boolean equals(Object other)
           
 List<Content> getApplicationContents()
           
 List<ServiceDeclaration> getApplicationExportServices()
           
 List<ServiceDeclaration> getApplicationImportServices()
           
 String getApplicationName()
           
 String getApplicationScope()
           
 String getApplicationSymbolicName()
           
 org.osgi.framework.Version getApplicationVersion()
           
 Collection<Content> getUseBundles()
           
 int hashCode()
           
 void store(File f)
           
 void store(OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationMetadataImpl

public ApplicationMetadataImpl(Manifest appManifest)
create the applicationMetadata from appManifest

Parameters:
appManifest - the Application.mf manifest
Method Detail

getApplicationContents

public List<Content> getApplicationContents()
Specified by:
getApplicationContents in interface ApplicationMetadata

getApplicationExportServices

public List<ServiceDeclaration> getApplicationExportServices()
Specified by:
getApplicationExportServices in interface ApplicationMetadata

getApplicationImportServices

public List<ServiceDeclaration> getApplicationImportServices()
Specified by:
getApplicationImportServices in interface ApplicationMetadata

getApplicationSymbolicName

public String getApplicationSymbolicName()
Specified by:
getApplicationSymbolicName in interface ApplicationMetadata

getApplicationVersion

public org.osgi.framework.Version getApplicationVersion()
Specified by:
getApplicationVersion in interface ApplicationMetadata

getApplicationName

public String getApplicationName()
Specified by:
getApplicationName in interface ApplicationMetadata

getApplicationScope

public String getApplicationScope()
Specified by:
getApplicationScope in interface ApplicationMetadata

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

store

public void store(File f)
           throws IOException
Specified by:
store in interface ApplicationMetadata
Throws:
IOException

store

public void store(OutputStream out)
           throws IOException
Specified by:
store in interface ApplicationMetadata
Throws:
IOException

getUseBundles

public Collection<Content> getUseBundles()
Specified by:
getUseBundles in interface ApplicationMetadata


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