Class Config
- java.lang.Object
-
- org.apache.felix.configurator.impl.model.Config
-
- All Implemented Interfaces:
Serializable,Comparable<Config>
public class Config extends Object implements Serializable, Comparable<Config>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Config(String pid, Dictionary<String,Object> properties, long bundleId, int ranking, ConfigPolicy policy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Config o)longgetBundleId()The bundle idList<File>getFiles()intgetIndex()The index of the configuration.StringgetPid()Get the PIDConfigPolicygetPolicy()Get the policyDictionary<String,Object>getProperties()Get all propertiesintgetRanking()The configuration rankingConfigStategetState()Get the configuration statevoidsetFiles(List<File> f)voidsetIndex(int value)Set the indexvoidsetState(ConfigState value)Set the configuration stateStringtoString()
-
-
-
Constructor Detail
-
Config
public Config(String pid, Dictionary<String,Object> properties, long bundleId, int ranking, ConfigPolicy policy)
-
-
Method Detail
-
getPid
public String getPid()
Get the PID- Returns:
- The pid.
-
getRanking
public int getRanking()
The configuration ranking- Returns:
- The configuration ranking
-
getBundleId
public long getBundleId()
The bundle id- Returns:
- The bundle id
-
getIndex
public int getIndex()
The index of the configuration. This value is only relevant if there are several configurations for the same pid with same ranking and bundle id.- Returns:
- The index within the configuration set
-
setIndex
public void setIndex(int value)
Set the index
-
getState
public ConfigState getState()
Get the configuration state- Returns:
- The state
-
setState
public void setState(ConfigState value)
Set the configuration state- Parameters:
value- The new state
-
getPolicy
public ConfigPolicy getPolicy()
Get the policy- Returns:
- The policy
-
getProperties
public Dictionary<String,Object> getProperties()
Get all properties- Returns:
- The configuration properties
-
compareTo
public int compareTo(Config o)
- Specified by:
compareToin interfaceComparable<Config>
-
-