Class ConfigList
java.lang.Object
org.apache.felix.configurator.impl.model.ConfigList
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<Config>
public class ConfigList extends java.lang.Object implements java.io.Serializable, java.lang.Iterable<Config>
The config list holds all configurations for a single PID
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ConfigList() -
Method Summary
Modifier and Type Method Description voidadd(Config c)Add a configuration to the list.voidaddAll(ConfigList configs)Add all configurations from another listlonggetChangeCount()Get the change count.ConfiggetLastInstalled()booleanhasChanges()Does this list need to be processedjava.util.Iterator<Config>iterator()voidsetChangeCount(long value)Set the change countvoidsetHasChanges(boolean value)Set the has changes flag.voidsetLastInstalled(Config lastInstalled)intsize()Get the size of the list of configurationsjava.lang.StringtoString()voiduninstall(long bundleId)Mark configurations for a bundle uninstall
-
Constructor Details
-
ConfigList
public ConfigList()
-
-
Method Details
-
hasChanges
public boolean hasChanges()Does this list need to be processed- Returns:
trueif it needs processing.
-
setHasChanges
public void setHasChanges(boolean value)Set the has changes flag.- Parameters:
value- New value.
-
add
Add a configuration to the list.- Parameters:
c- The configuration.
-
addAll
Add all configurations from another list- Parameters:
configs- The config list
-
size
public int size()Get the size of the list of configurations- Returns:
-
iterator
- Specified by:
iteratorin interfacejava.lang.Iterable<Config>
-
getChangeCount
public long getChangeCount()Get the change count.- Returns:
- The change count
-
setChangeCount
public void setChangeCount(long value)Set the change count- Parameters:
value- The new change count
-
getLastInstalled
-
setLastInstalled
-
uninstall
public void uninstall(long bundleId)Mark configurations for a bundle uninstall- Parameters:
bundleId- The bundle id of the uninstalled bundle
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-