public class Configuration extends Object implements Comparable<Configuration>
Modifier and Type | Field and Description |
---|---|
static String |
CONFIGURATOR_PREFIX
Prefix for instructions for the configurator.
|
static String |
PROP_ARTIFACT_ID
This optional configuration property stores the artifact id (mvn id) of the
bundle this configuration belongs to.
|
static String |
PROP_PREFIX
Prefix for special properties which are not configuration properties.
|
Constructor and Description |
---|
Configuration(String pid)
Create a new configuration
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Configuration o) |
Configuration |
copy(String aPid)
Create a copy of the configuration with a provided PID.
|
Dictionary<String,Object> |
getConfigurationProperties()
Get the configuration properties of the configuration.
|
static String |
getFactoryPid(String pid)
Return the factory pid of a pid if it's a factory configuration
|
static String |
getName(String pid)
Return the name for a factory configuration.
|
String |
getPid()
Get the pid.
|
Dictionary<String,Object> |
getProperties()
Get all properties of the configuration.
|
static boolean |
isFactoryConfiguration(String pid)
Check whether the pid is a factory pid
|
String |
toString() |
public static final String CONFIGURATOR_PREFIX
public static final String PROP_PREFIX
public static final String PROP_ARTIFACT_ID
public Configuration(String pid)
pid
- The pidIllegalArgumentException
- If pid is null
public int compareTo(Configuration o)
compareTo
in interface Comparable<Configuration>
public String getPid()
public static boolean isFactoryConfiguration(String pid)
pid
- The pidtrue
if it's a factory pidpublic static String getFactoryPid(String pid)
pid
- The pidnull
.public static String getName(String pid)
pid
- The pidnull
.public Dictionary<String,Object> getProperties()
public Dictionary<String,Object> getConfigurationProperties()
public Configuration copy(String aPid)
aPid
- The pid of the configurationCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.