org.jboss.osgi.spi.framework
Class FrameworkIntegrationBean

java.lang.Object
  extended by org.jboss.osgi.spi.framework.FrameworkIntegrationBean

public abstract class FrameworkIntegrationBean
extends Object

An abstraction of an OSGi Framework. In addition to the standard Framework this implementation also supports properties and initial bundle provisioning.

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

Constructor Summary
FrameworkIntegrationBean()
           
 
Method Summary
 void create()
           
protected abstract  Framework createFramework(Map<String,Object> properties)
          Overwrite to create the framework
 List<URL> getAutoInstall()
           
 List<URL> getAutoStart()
           
 Bundle getBundle()
           
 BundleContext getBundleContext()
           
 Framework getFramework()
           
 Map<String,Object> getProperties()
           
protected  void registerSystemServices(BundleContext context)
          Overwrite to register system services before bundles get installed.
 void setAutoInstall(List<URL> autoInstall)
           
 void setAutoStart(List<URL> autoStart)
           
 void setProperties(Map<String,Object> props)
           
 void start()
           
 void stop()
           
protected  void unregisterSystemServices(BundleContext context)
          Overwrite to unregister system services before bundles get installed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameworkIntegrationBean

public FrameworkIntegrationBean()
Method Detail

getProperties

public Map<String,Object> getProperties()

setProperties

public void setProperties(Map<String,Object> props)

getAutoInstall

public List<URL> getAutoInstall()

setAutoInstall

public void setAutoInstall(List<URL> autoInstall)

getAutoStart

public List<URL> getAutoStart()

setAutoStart

public void setAutoStart(List<URL> autoStart)

getBundle

public Bundle getBundle()

getBundleContext

public BundleContext getBundleContext()

getFramework

public Framework getFramework()

create

public void create()

createFramework

protected abstract Framework createFramework(Map<String,Object> properties)
Overwrite to create the framework


start

public void start()

stop

public void stop()

registerSystemServices

protected void registerSystemServices(BundleContext context)
Overwrite to register system services before bundles get installed.


unregisterSystemServices

protected void unregisterSystemServices(BundleContext context)
Overwrite to unregister system services before bundles get installed.



Copyright © 2012. All Rights Reserved.