org.apache.aries.application.management.spi.framework
Interface BundleFramework


public interface BundleFramework


Field Summary
static String SHARED_BUNDLE_FRAMEWORK
           
 
Method Summary
 void close()
          Closes the framework and any associated resource
 List<org.osgi.framework.Bundle> getBundles()
          Returns a list of bundles currently installed in this framework
 org.osgi.framework.Bundle getFrameworkBundle()
          Returns the OSGi bundle representing the framework
 org.osgi.framework.BundleContext getIsolatedBundleContext()
          Returns the bundle context for the framework.
 void init()
          Initialises the framework (but does not start the framework bundle)
 org.osgi.framework.Bundle install(BundleRepository.BundleSuggestion suggestion, AriesApplication app)
          Installs a bundle to this framework.
 void start()
          Starts the framework and the framework bundle
 void start(org.osgi.framework.Bundle b)
          Start a previously installed bundle in this framework.
 void stop(org.osgi.framework.Bundle b)
          Stop a previously installed bundle in this framework.
 void uninstall(org.osgi.framework.Bundle b)
          Removes a bundle from this framework
 

Field Detail

SHARED_BUNDLE_FRAMEWORK

static final String SHARED_BUNDLE_FRAMEWORK
See Also:
Constant Field Values
Method Detail

init

void init()
          throws org.osgi.framework.BundleException
Initialises the framework (but does not start the framework bundle)

Throws:
org.osgi.framework.BundleException

start

void start()
           throws org.osgi.framework.BundleException
Starts the framework and the framework bundle

Throws:
org.osgi.framework.BundleException

close

void close()
           throws org.osgi.framework.BundleException
Closes the framework and any associated resource

Throws:
org.osgi.framework.BundleException

install

org.osgi.framework.Bundle install(BundleRepository.BundleSuggestion suggestion,
                                  AriesApplication app)
                                  throws org.osgi.framework.BundleException
Installs a bundle to this framework.

Parameters:
suggestion - The information required to install the bundle
app - The application with which this install is associated
Returns:
Throws:
org.osgi.framework.BundleException

uninstall

void uninstall(org.osgi.framework.Bundle b)
               throws org.osgi.framework.BundleException
Removes a bundle from this framework

Parameters:
b - The bundle to remove
Throws:
org.osgi.framework.BundleException

start

void start(org.osgi.framework.Bundle b)
           throws org.osgi.framework.BundleException
Start a previously installed bundle in this framework.

Parameters:
b -
Throws:
org.osgi.framework.BundleException

stop

void stop(org.osgi.framework.Bundle b)
          throws org.osgi.framework.BundleException
Stop a previously installed bundle in this framework.

Parameters:
b -
Throws:
org.osgi.framework.BundleException

getIsolatedBundleContext

org.osgi.framework.BundleContext getIsolatedBundleContext()
Returns the bundle context for the framework.

Returns:

getFrameworkBundle

org.osgi.framework.Bundle getFrameworkBundle()
Returns the OSGi bundle representing the framework

Returns:

getBundles

List<org.osgi.framework.Bundle> getBundles()
Returns a list of bundles currently installed in this framework

Returns:


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