org.jboss.osgi.spi.framework
Interface OSGiBootstrapProvider

All Superinterfaces:
NamedInstanceProvider
All Known Implementing Classes:
MicrocontainerBootstrapProvider, PropertiesBootstrapProvider

public interface OSGiBootstrapProvider
extends NamedInstanceProvider

An OSGiBootstrapProvider provides an OSGiFramework

Implementations would configure the OSGiFramework through some form of descriptor.

Natively, the SPI provides an OSGiBootstrapProvider that is based on the Microkernel.

Since:
18-Jun-2008
Author:
thomas.diesler@jboss.com

Field Summary
static java.lang.String DEFAULT_FRAMEWORK_NAME
          The Framework bean name - jboss.osgi:service=Framework
 
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
 
Methods inherited from interface org.jboss.osgi.spi.framework.NamedInstanceProvider
getInstance, getInstance
 

Field Detail

DEFAULT_FRAMEWORK_NAME

static final java.lang.String DEFAULT_FRAMEWORK_NAME
The Framework bean name - jboss.osgi:service=Framework

See Also:
Constant Field Values
Method Detail

getFramework

OSGiFramework getFramework()
Get the OSGiFramework that registerd with the default name

Returns:
The configured instance of a Framework
Throws:
java.lang.IllegalArgumentException - if this is not AttributeProvider instance

getFramework

OSGiFramework getFramework(java.lang.String name)
Get an OSGiFramework with a given name from this OSGiBootstrapProvider

Parameters:
name - the framework name
Returns:
The configured instance of a Framework, or null

configure

void configure()
Configure this provider with the default configuration


configure

void configure(java.net.URL urlConfig)
Configure this provider from the given URL


configure

void configure(java.lang.String resourceConfig)
Configure this provider from a given resource


configure

void configure(java.io.InputStream streamConfig)
Configure this provider from a given input stream



Copyright © 2009. All Rights Reserved.