public class FrameworkUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FRAMEWORK_FACTORY |
| Modifier and Type | Method and Description |
|---|---|
static org.osgi.framework.launch.Framework |
create(Map<String,String> configuration) |
static org.osgi.framework.launch.FrameworkFactory |
getFrameworkFactory()
Simple method to parse META-INF/services file for framework factory.
|
static String |
read(InputStream stream) |
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
IOExceptionpublic static String read(InputStream stream) throws IOException
IOExceptionCopyright © 2014 OW2 Chameleon. All rights reserved.