public class FrameworkManager extends Object
| Constructor and Description |
|---|
FrameworkManager(Chameleon chameleon,
ChameleonConfiguration configuration)
Creates the framework manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActivators(List<org.osgi.framework.BundleActivator> activators)
Adds activators to the framework.
|
ChameleonConfiguration |
configuration()
Gets the chameleon configuration.
|
org.osgi.framework.launch.Framework |
get()
Gets the held framework instance.
|
org.osgi.framework.launch.Framework |
start()
Initializes and Starts the Chameleon frameworks.
|
void |
stop()
Stops the underlying framework.
|
public FrameworkManager(Chameleon chameleon, ChameleonConfiguration configuration) throws IOException
chameleon - a Chameleon object.configuration - a ChameleonConfiguration object.IOException - if any.public ChameleonConfiguration configuration()
public org.osgi.framework.launch.Framework get()
Framework object.public org.osgi.framework.launch.Framework start()
throws org.osgi.framework.BundleException
org.osgi.framework.BundleException - if a bundle cannot be installed or started
correctly.public void stop()
throws org.osgi.framework.BundleException,
InterruptedException
org.osgi.framework.BundleException - should not happen.InterruptedException - if the method is interrupted during the
waiting time.public void addActivators(List<org.osgi.framework.BundleActivator> activators)
activators - the set of activators.Copyright © 2009–2014 OW2 Chameleon. All rights reserved.