|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.osgi.spi.framework.PropertiesBootstrapProvider
public class PropertiesBootstrapProvider
A simple properties based bootstrap provider The PropertiesBootstrapProvider supports the following properties
# Properties to configure the Framework org.osgi.framework.storage.clean=onFirstInit org.osgi.framework.system.packages=\ org.osgi.framework; version=1.4, \ javax.management # Bundles that need to be installed with the Framework automatically org.jboss.osgi.framework.autoInstall=\ file://${test.archive.directory}/bundles/org.osgi.compendium.jar # Bundles that need to be started automatically org.jboss.osgi.framework.autoStart=\ file://${test.archive.directory}/bundles/org.apache.felix.log.jar \ file://${test.archive.directory}/bundles/jboss-osgi-common.jar \
Field Summary | |
---|---|
static String |
DEFAULT_OSGI_FRAMEWORK_PROPERTIES
The default framework config: jboss-osgi-framework.properties |
static String |
OSGI_FRAMEWORK_CONFIG
The default framework property: jboss.osgi.framework.properties |
static String |
PROP_OSGI_FRAMEWORK_AUTO_INSTALL
Optional list of bundles that get installed automatically: org.jboss.osgi.framework.autoInstall |
static String |
PROP_OSGI_FRAMEWORK_AUTO_START
Optional list of bundles that get started automatically: org.jboss.osgi.framework.autoStart |
static String |
PROP_OSGI_FRAMEWORK_EXTRA
Optional path to extra properties: org.jboss.osgi.framework.extra |
Constructor Summary | |
---|---|
PropertiesBootstrapProvider()
|
Method Summary | |
---|---|
void |
configure()
Configure this provider with the default configuration |
void |
configure(InputStream streamConfig)
Configure this provider from a given input stream |
void |
configure(String resourceConfig)
Configure this provider from a given resource |
void |
configure(URL urlConfig)
Configure this provider from the given URL |
protected Framework |
createFramework(Map<String,Object> properties)
Overwrite to create the framework |
Framework |
getFramework()
Get the configured OSGi Framework |
protected void |
registerSystemServices(BundleContext context)
Overwrite to register system services before bundles get installed. |
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 |
Field Detail |
---|
public static final String OSGI_FRAMEWORK_CONFIG
public static final String DEFAULT_OSGI_FRAMEWORK_PROPERTIES
public static final String PROP_OSGI_FRAMEWORK_AUTO_INSTALL
public static final String PROP_OSGI_FRAMEWORK_AUTO_START
public static final String PROP_OSGI_FRAMEWORK_EXTRA
Constructor Detail |
---|
public PropertiesBootstrapProvider()
Method Detail |
---|
public void configure()
OSGiBootstrapProvider
configure
in interface OSGiBootstrapProvider
public void configure(String resourceConfig)
OSGiBootstrapProvider
configure
in interface OSGiBootstrapProvider
public void configure(URL urlConfig)
OSGiBootstrapProvider
configure
in interface OSGiBootstrapProvider
public void configure(InputStream streamConfig)
OSGiBootstrapProvider
configure
in interface OSGiBootstrapProvider
protected Framework createFramework(Map<String,Object> properties)
protected void registerSystemServices(BundleContext context)
protected void unregisterSystemServices(BundleContext context)
public Framework getFramework()
OSGiBootstrapProvider
getFramework
in interface OSGiBootstrapProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |