org.apache.aries.application.runtime.isolated.impl
Class ApplicationContextImpl

java.lang.Object
  extended by org.apache.aries.application.runtime.isolated.impl.ApplicationContextImpl
All Implemented Interfaces:
AriesApplicationContext

public class ApplicationContextImpl
extends Object
implements AriesApplicationContext


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.aries.application.management.AriesApplicationContext
AriesApplicationContext.ApplicationState
 
Constructor Summary
ApplicationContextImpl(AriesApplication app, ApplicationContextManagerImpl acm)
           
 
Method Summary
 AriesApplication getApplication()
           
 Set<org.osgi.framework.Bundle> getApplicationContent()
           
 AriesApplicationContext.ApplicationState getApplicationState()
           
 void start()
           
 void stop()
           
protected  void uninstall()
          Called to remove the application, if called multiple times the subsequent calls will be ignored.
 void update(DeploymentMetadata newMetadata, DeploymentMetadata oldMetadata)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationContextImpl

public ApplicationContextImpl(AriesApplication app,
                              ApplicationContextManagerImpl acm)
                       throws org.osgi.framework.BundleException
Throws:
org.osgi.framework.BundleException
Method Detail

uninstall

protected void uninstall()
                  throws org.osgi.framework.BundleException
Called to remove the application, if called multiple times the subsequent calls will be ignored.

Throws:
org.osgi.framework.BundleException

getApplication

public AriesApplication getApplication()
Specified by:
getApplication in interface AriesApplicationContext

getApplicationContent

public Set<org.osgi.framework.Bundle> getApplicationContent()
Specified by:
getApplicationContent in interface AriesApplicationContext

getApplicationState

public AriesApplicationContext.ApplicationState getApplicationState()
Specified by:
getApplicationState in interface AriesApplicationContext

start

public void start()
           throws org.osgi.framework.BundleException,
                  IllegalStateException
Specified by:
start in interface AriesApplicationContext
Throws:
org.osgi.framework.BundleException
IllegalStateException

stop

public void stop()
          throws org.osgi.framework.BundleException,
                 IllegalStateException
Specified by:
stop in interface AriesApplicationContext
Throws:
org.osgi.framework.BundleException
IllegalStateException

update

public void update(DeploymentMetadata newMetadata,
                   DeploymentMetadata oldMetadata)
            throws UpdateException
Throws:
UpdateException


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