org.jboss.osgi.spi.framework
Class FrameworkIntegrationBean

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

public abstract class FrameworkIntegrationBean
extends java.lang.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  org.osgi.framework.launch.Framework createFramework(java.util.Map<java.lang.String,java.lang.Object> properties)
          Overwrite to create the framework
 java.util.List<java.net.URL> getAutoInstall()
           
 java.util.List<java.net.URL> getAutoStart()
           
 Bundle getBundle()
           
 BundleContext getBundleContext()
           
 org.osgi.framework.launch.Framework getFramework()
           
 java.util.Map<java.lang.String,java.lang.Object> getProperties()
           
protected  void registerSystemServices(BundleContext context)
          Overwrite to register system services before bundles get installed.
 void setAutoInstall(java.util.List<java.net.URL> autoInstall)
           
 void setAutoStart(java.util.List<java.net.URL> autoStart)
           
 void setProperties(java.util.Map<java.lang.String,java.lang.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 java.util.Map<java.lang.String,java.lang.Object> getProperties()

setProperties

public void setProperties(java.util.Map<java.lang.String,java.lang.Object> props)

getAutoInstall

public java.util.List<java.net.URL> getAutoInstall()

setAutoInstall

public void setAutoInstall(java.util.List<java.net.URL> autoInstall)

getAutoStart

public java.util.List<java.net.URL> getAutoStart()

setAutoStart

public void setAutoStart(java.util.List<java.net.URL> autoStart)

getBundle

public Bundle getBundle()

getBundleContext

public BundleContext getBundleContext()

getFramework

public org.osgi.framework.launch.Framework getFramework()

create

public void create()

createFramework

protected abstract org.osgi.framework.launch.Framework createFramework(java.util.Map<java.lang.String,java.lang.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 © 2009. All Rights Reserved.