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.
|
String |
getFactoryPid()
Return the factory pid of a pid if it's a factory configuration
|
static String |
getFactoryPid(String pid)
Return the factory pid of a pid if it's a factory configuration
|
String |
getName()
Return the name for a factory configuration if it is a factory configuration.
|
static String |
getName(String pid)
Return the name for a factory configuration if it is a factory configuration.
|
String |
getPid()
Get the pid.
|
Dictionary<String,Object> |
getProperties()
Get all properties of the configuration.
|
boolean |
isFactoryConfiguration()
Check whether the pid is a factory pid
|
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 nullpublic int compareTo(Configuration o)
compareTo in interface Comparable<Configuration>public String getPid()
public boolean isFactoryConfiguration()
true if it's a factory pidpublic String getFactoryPid()
null.isFactoryConfiguration()public String getName()
null.isFactoryConfiguration()public static boolean isFactoryConfiguration(String pid)
pid - The pidtrue if it's a factory pidpublic static String getFactoryPid(String pid)
pid - The pidnull.isFactoryConfiguration(String)public static String getName(String pid)
pid - The pidnull.isFactoryConfiguration(String)public Dictionary<String,Object> getProperties()
public Dictionary<String,Object> getConfigurationProperties()
#CONFIGURATOR_PREFIX. The returned copy is a mutable dictionary which
represents a snapshot of the properties at the time this method is called.public Configuration copy(String aPid)
aPid - The pid of the configurationCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.