public class FrameworkUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FRAMEWORK_FACTORY
The path to the file specifying the framework factory class to use.
|
| Modifier and Type | Method and Description |
|---|---|
static org.osgi.framework.launch.Framework |
create(Map<String,String> configuration)
Creates the framework instance and configures it using the given configuration.
|
static org.osgi.framework.launch.FrameworkFactory |
getFrameworkFactory()
Simple method to parse META-INF/services file for framework factory.
|
static String |
read(InputStream stream)
Reads the framework factory file.
|
public static final String FRAMEWORK_FACTORY
public static org.osgi.framework.launch.FrameworkFactory getFrameworkFactory()
throws ClassNotFoundException,
IllegalAccessException,
InstantiationException,
IOException
ClassNotFoundException - if the framework factory class cannot be loaded.IllegalAccessException - if the framework factory instance cannot be created.InstantiationException - if the framework factory instance cannot be created.IOException - if the service file cannot be readpublic static org.osgi.framework.launch.Framework create(Map<String,String> configuration) throws IOException
configuration - the framework configuration.IOException - if any.public static String read(InputStream stream) throws IOException
stream - the stream to read..IOException - if any.Copyright © 2009–2014 OW2 Chameleon. All rights reserved.