org.apache.aries.application.management
Interface AriesApplicationContext


public interface AriesApplicationContext

Represents an Aries application in the runtime. See the application-runtime module for a sample implementation.


Nested Class Summary
static class AriesApplicationContext.ApplicationState
           
 
Method Summary
 AriesApplication getApplication()
          Obtain the associated AriesApplication metadata.
 Set<Bundle> getApplicationContent()
          Get the org.osgi.framework.Bundle objects representing the application's runtime constituents.
 AriesApplicationContext.ApplicationState getApplicationState()
          Get the state of a running application.
 void start()
          Start the application by starting all its constituent bundles as per the DeploymentContent in the associated AriesApplication's DeploymentMetadata.
 void stop()
          Stop the application by stopping all its constituent bundles.
 

Method Detail

getApplicationState

AriesApplicationContext.ApplicationState getApplicationState()
Get the state of a running application. An application is INSTALLED if all its bundles are installed, RESOLVED if all its bundles are resolved, ACTIVE if all its bundles are active, and so on.

Returns:
ApplicationState.

getApplication

AriesApplication getApplication()
Obtain the associated AriesApplication metadata.

Returns:
AriesApplication

start

void start()
           throws BundleException,
                  IllegalStateException
Start the application by starting all its constituent bundles as per the DeploymentContent in the associated AriesApplication's DeploymentMetadata.

Throws:
BundleException
IllegalStateException

stop

void stop()
          throws BundleException,
                 IllegalStateException
Stop the application by stopping all its constituent bundles.

Throws:
BundleException
IllegalStateException

getApplicationContent

Set<Bundle> getApplicationContent()
Get the org.osgi.framework.Bundle objects representing the application's runtime constituents.

Returns:
The application's runtime content.


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