org.jboss.osgi.spi.framework
Interface OSGiFramework


public interface OSGiFramework

An abstraction of an OSGi Framework

Since:
23-Jan-2009
Author:
thomas.diesler@jboss.com

Method Summary
 java.util.List<java.net.URL> getAutoInstall()
          Get the list of bundles that get installed automatically
 java.util.List<java.net.URL> getAutoStart()
          Get the list of bundles that get installed and started automatically
 java.util.Map<java.lang.String,java.lang.Object> getProperties()
          Get the Framework properties
 org.osgi.framework.Bundle getSystemBundle()
          Get the System Bundle associated with this Framework
 org.osgi.framework.BundleContext getSystemBundleContext()
          Get the System Bundle Context associated with this Framework
 void setAutoInstall(java.util.List<java.net.URL> autoInstall)
          Set the list of bundles that get installed automatically.
 void setAutoStart(java.util.List<java.net.URL> autoStart)
          Set the list of bundles that get installed and started automatically.
 void setProperties(java.util.Map<java.lang.String,java.lang.Object> props)
          Set the Framework properties.
 void start()
          Start the Framework
 void stop()
          Stop the Framework
 

Method Detail

getProperties

java.util.Map<java.lang.String,java.lang.Object> getProperties()
Get the Framework properties


setProperties

void setProperties(java.util.Map<java.lang.String,java.lang.Object> props)
Set the Framework properties. This can only be done before the Framework is started.


getAutoInstall

java.util.List<java.net.URL> getAutoInstall()
Get the list of bundles that get installed automatically


setAutoInstall

void setAutoInstall(java.util.List<java.net.URL> autoInstall)
Set the list of bundles that get installed automatically. This can only be done before the Framework is started.


getAutoStart

java.util.List<java.net.URL> getAutoStart()
Get the list of bundles that get installed and started automatically


setAutoStart

void setAutoStart(java.util.List<java.net.URL> autoStart)
Set the list of bundles that get installed and started automatically. This can only be done before the Framework is started.


start

void start()
Start the Framework


stop

void stop()
Stop the Framework


getSystemBundle

org.osgi.framework.Bundle getSystemBundle()
Get the System Bundle associated with this Framework


getSystemBundleContext

org.osgi.framework.BundleContext getSystemBundleContext()
Get the System Bundle Context associated with this Framework



Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.