|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.spi.framework.MicrocontainerBootstrapProvider
public class MicrocontainerBootstrapProvider
Bootstrap the OSGiFramework through the MC
<deployment xmlns="urn:jboss:bean-deployer:2.0" ...>
<!-- The OSGiFramework -->
<bean name="jboss.osgi:service=Framework" class="org.jboss.osgi.felix.framework.FelixIntegration">
<property name="felixProperties">
<map keyClass="java.lang.String" valueClass="java.lang.String">
<entry><key>org.osgi.framework.storage.clean</key><value>onFirstInit</value></entry>
<entry>
<key>org.osgi.framework.system.packages</key>
<value>
org.osgi.framework; version=1.4,
org.osgi.util.tracker
</value>
</entry>
</map>
</property>
</bean>
...
</deployment>
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_OSGI_BOOTSTRAP_XML
The default framework beans: jboss-osgi-bootstrap-beans.xml |
static java.lang.String |
DEFAULT_OSGI_FRAMEWORK_XML
The default framework beans: jboss-osgi-beans.xml |
static java.lang.String |
OSGI_BOOTSTRAP_BEANS
The default framework beans property: jboss.osgi.bootstrap.beans |
static java.lang.String |
OSGI_FRAMEWORK_BEANS
The default framework beans property: jboss.osgi.framework.beans |
| Fields inherited from interface org.jboss.osgi.spi.framework.OSGiBootstrapProvider |
|---|
DEFAULT_FRAMEWORK_NAME |
| Constructor Summary | |
|---|---|
MicrocontainerBootstrapProvider()
|
|
| 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 beanName)
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String OSGI_BOOTSTRAP_BEANS
public static final java.lang.String DEFAULT_OSGI_BOOTSTRAP_XML
public static final java.lang.String OSGI_FRAMEWORK_BEANS
public static final java.lang.String DEFAULT_OSGI_FRAMEWORK_XML
| Constructor Detail |
|---|
public MicrocontainerBootstrapProvider()
| Method Detail |
|---|
public OSGiFramework getFramework()
OSGiBootstrapProvider
getFramework in interface OSGiBootstrapProviderpublic OSGiFramework getFramework(java.lang.String beanName)
OSGiBootstrapProvider
getFramework in interface OSGiBootstrapProviderbeanName - the framework name
public void configure()
OSGiBootstrapProvider
configure in interface OSGiBootstrapProviderpublic void configure(java.io.InputStream streamConfig)
OSGiBootstrapProvider
configure in interface OSGiBootstrapProviderpublic void configure(java.lang.String resourceConfig)
OSGiBootstrapProvider
configure in interface OSGiBootstrapProviderpublic void configure(java.net.URL urlConfig)
OSGiBootstrapProvider
configure in interface OSGiBootstrapProviderpublic 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 | |||||||||