public class Chameleon extends Object
Constructor and Description |
---|
Chameleon(boolean interactive)
Creates a Chameleon instance.
|
Chameleon(ChameleonConfiguration configuration)
Creates a chameleon instance.
|
Chameleon(File basedir,
boolean interactive)
Creates a chameleon instance.
|
Chameleon(String basedir,
boolean interactive)
Creates a Chameleon instance.
|
Modifier and Type | Method and Description |
---|---|
org.osgi.framework.BundleContext |
context()
Retrieves the bundle context of the underlying framework.
|
org.osgi.framework.launch.Framework |
framework()
Retrieves the underlying framework.
|
static org.slf4j.Logger |
initializeLoggingSystem(ChameleonConfiguration configuration)
Initialized the logging framework (backend).
|
void |
start()
Initializes and Starts the Chameleon frameworks.
|
void |
stop()
Stops the underlying framework.
|
public Chameleon(File basedir, boolean interactive) throws Exception
basedir
- the base directoryinteractive
- if the interactive mode enabled.Exception
- if the chameleon instance cannot be created.public Chameleon(ChameleonConfiguration configuration) throws Exception
configuration
- the configuration to useException
- if the chameleon instance cannot be created.public Chameleon(boolean interactive) throws Exception
interactive
- is the debug mode enabled.Exception
- something wrong happens.public Chameleon(String basedir, boolean interactive) throws Exception
basedir
- the chameleon's base directoryinteractive
- is the debug mode enabled.Exception
- something wrong happens.public static org.slf4j.Logger initializeLoggingSystem(ChameleonConfiguration configuration) throws IOException
configuration
- chameleon's configuration.IOException
public void 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 org.osgi.framework.BundleContext context()
public org.osgi.framework.launch.Framework framework()
Copyright © 2009–2013 OW2 Chameleon. All rights reserved.