org.apache.aries.application.management
Interface AriesApplication


public interface AriesApplication

Metadata about an Aries application


Method Summary
 ApplicationMetadata getApplicationMetadata()
          Get the application metadata, which is stored in META-INF/APPLICATION.MF.
 Set<BundleInfo> getBundleInfo()
           
 DeploymentMetadata getDeploymentMetadata()
          Get the deployment metadata, which is stored in META-INF/DEPLOYMENT.MF.
 boolean isResolved()
          Check if the application is resolved or not.
 void store(File f)
          Persist this metadata.
 void store(OutputStream out)
          Persist this metadata.
 

Method Detail

getApplicationMetadata

ApplicationMetadata getApplicationMetadata()
Get the application metadata, which is stored in META-INF/APPLICATION.MF.

Returns:
ApplicationMetadata

getDeploymentMetadata

DeploymentMetadata getDeploymentMetadata()
Get the deployment metadata, which is stored in META-INF/DEPLOYMENT.MF.

Returns:
DeploymentMetadata

getBundleInfo

Set<BundleInfo> getBundleInfo()
Returns:
the set of bundles included in the application by value

isResolved

boolean isResolved()
Check if the application is resolved or not. An application is said to be resolved if it has a valid deployment metadata. During the installation process, an application will be automatically resolved if it is not already.

Returns:
if the appplication is resolved or not.
See Also:
AriesApplicationManager.install(AriesApplication), AriesApplicationManager.resolve(AriesApplication, ResolveConstraint...)

store

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

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

store

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

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


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