public class PropertiesBootstrapProvider extends Object implements OSGiBootstrapProvider
# Properties to configure the Framework org.osgi.framework.storage.clean=onFirstInit # Bundles that need to be installed with the Framework automatically org.jboss.osgi.framework.autoInstall=\ # Bundles that need to be started automatically org.jboss.osgi.framework.autoStart=\ file://${test.archive.directory}/bundles/org.apache.felix.log.jar
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
PropertiesBootstrapProvider() |
Modifier and Type | Method and Description |
---|---|
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 org.osgi.framework.launch.Framework |
createFramework(Map<String,String> properties)
Overwrite to create the framework
|
org.osgi.framework.launch.Framework |
getFramework()
Get the configured OSGi Framework
|
protected void |
registerSystemServices(org.osgi.framework.BundleContext context)
Overwrite to register system services before bundles get installed.
|
protected void |
unregisterSystemServices(org.osgi.framework.BundleContext context)
Overwrite to unregister system services before bundles get installed.
|
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
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 org.osgi.framework.launch.Framework createFramework(Map<String,String> properties)
protected void registerSystemServices(org.osgi.framework.BundleContext context)
protected void unregisterSystemServices(org.osgi.framework.BundleContext context)
public org.osgi.framework.launch.Framework getFramework()
OSGiBootstrapProvider
getFramework
in interface OSGiBootstrapProvider
Copyright © 2013 JBoss by Red Hat. All rights reserved.