public class Chameleon extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CHAMELEON_BASEDIR
A system property to set the chameleon location externally.
|
| Constructor and Description |
|---|
Chameleon(boolean interactive)
Creates a Chameleon instance.
|
Chameleon(boolean interactive,
Map<String,Object> userProperties)
Creates a Chameleon instance.
|
Chameleon(ChameleonConfiguration configuration)
Creates a chameleon instance.
|
Chameleon(File basedir,
boolean interactive,
Map<String,Object> userProperties)
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 static final String CHAMELEON_BASEDIR
public Chameleon(File basedir, boolean interactive, Map<String,Object> userProperties) throws IOException
basedir - the base directoryinteractive - if the interactive mode enabled.userProperties - the system properties provided by the user in command lineIOException - if the chameleon instance cannot be created.public Chameleon(ChameleonConfiguration configuration) throws IOException
configuration - the configuration to useIOException - if the chameleon instance cannot be created.public Chameleon(boolean interactive)
throws IOException
interactive - is the debug mode enabled.IOException - something wrong happens.public Chameleon(String basedir, boolean interactive) throws IOException
basedir - the chameleon's base directoryinteractive - is the debug mode enabled.IOException - something wrong happens.public Chameleon(boolean interactive,
Map<String,Object> userProperties)
throws IOException
interactive - is the debug mode enabled.userProperties - the user propertiesIOException - something wrong happens.public static org.slf4j.Logger initializeLoggingSystem(ChameleonConfiguration configuration) throws IOException
configuration - chameleon's configuration.IOException - occurs when the logging cannot be configuredpublic 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–2014 OW2 Chameleon. All rights reserved.