|
||||||||||
| 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
# The OSGiFramework implementation
org.jboss.osgi.spi.framework.impl=org.jboss.osgi.felix.framework.FelixIntegration
# Properties to configure the Framework
org.osgi.framework.storage.clean=onFirstInit
org.osgi.framework.system.packages=\
org.jboss.logging, \
org.osgi.framework; version=1.4, \
javax.management
# Bundles that need to be installed with the Framework automatically
org.jboss.osgi.spi.framework.autoInstall=\
file://${test.archive.directory}/bundles/org.osgi.compendium.jar
# Bundles that need to be started automatically
org.jboss.osgi.spi.framework.autoStart=\
file://${test.archive.directory}/bundles/org.apache.felix.log.jar \
file://${test.archive.directory}/bundles/jboss-osgi-logging.jar \
file://${test.archive.directory}/bundles/jboss-osgi-common.jar \
file://${test.archive.directory}/bundles/jboss-osgi-jmx.jar \
file://${test.archive.directory}/bundles/jboss-osgi-microcontainer.jar
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_OSGI_FRAMEWORK_PROPERTIES
The default framework config: jboss-osgi-framework.properties |
static java.lang.String |
OSGI_FRAMEWORK_CONFIG
The default framework property: jboss.osgi.framework.properties |
static java.lang.String |
PROP_OSGI_FRAMEWORK_AUTO_INSTALL
The OSGi framework integration class: org.jboss.osgi.spi.framework.autoInstall |
static java.lang.String |
PROP_OSGI_FRAMEWORK_AUTO_START
The OSGi framework integration class: org.jboss.osgi.spi.framework.autoStart |
static java.lang.String |
PROP_OSGI_FRAMEWORK_IMPL
The OSGi framework integration class: org.jboss.osgi.spi.framework.impl |
| Fields inherited from interface org.jboss.osgi.spi.framework.OSGiBootstrapProvider |
|---|
DEFAULT_FRAMEWORK_NAME |
| Constructor Summary | |
|---|---|
PropertiesBootstrapProvider()
|
|
| Method Summary | ||
|---|---|---|
void |
configure()
Configure this provider with the default configuration |
|
void |
configure(java.io.InputStream streamConfig)
Configure this provider from a given input stream |
|
void |
configure(java.lang.String resourceConfig)
Configure this provider from a given resource |
|
void |
configure(java.net.URL urlConfig)
Configure this provider from the given URL |
|
OSGiFramework |
getFramework()
Get the OSGiFramework that registerd with the default name |
|
OSGiFramework |
getFramework(java.lang.String name)
Get an OSGiFramework with a given name from this OSGiBootstrapProvider |
|
java.lang.Object |
getInstance(java.lang.String name)
Get a named instance |
|
|
getInstance(java.lang.String name,
java.lang.Class<T> expectedType)
Get a named instance for a given type |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String OSGI_FRAMEWORK_CONFIG
public static final java.lang.String DEFAULT_OSGI_FRAMEWORK_PROPERTIES
public static final java.lang.String PROP_OSGI_FRAMEWORK_IMPL
public static final java.lang.String PROP_OSGI_FRAMEWORK_AUTO_INSTALL
public static final java.lang.String PROP_OSGI_FRAMEWORK_AUTO_START
| Constructor Detail |
|---|
public PropertiesBootstrapProvider()
| Method Detail |
|---|
public void configure()
OSGiBootstrapProvider
configure in interface OSGiBootstrapProviderpublic void configure(java.net.URL urlConfig)
OSGiBootstrapProvider
configure in interface OSGiBootstrapProviderpublic void configure(java.lang.String resourceConfig)
OSGiBootstrapProvider
configure in interface OSGiBootstrapProviderpublic void configure(java.io.InputStream streamConfig)
OSGiBootstrapProvider
configure in interface OSGiBootstrapProviderpublic OSGiFramework getFramework()
OSGiBootstrapProvider
getFramework in interface OSGiBootstrapProviderpublic OSGiFramework getFramework(java.lang.String name)
OSGiBootstrapProvider
getFramework in interface OSGiBootstrapProvidername - the framework name
public java.lang.Object getInstance(java.lang.String name)
NamedInstanceProvider
getInstance in interface NamedInstanceProvidername - the attribute name
public <T> T getInstance(java.lang.String name,
java.lang.Class<T> expectedType)
NamedInstanceProvider
getInstance in interface NamedInstanceProviderT - exact attribute typename - the attribute nameexpectedType - the expected type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||