Class ConfigList
- java.lang.Object
-
- org.apache.felix.configurator.impl.model.ConfigList
-
- All Implemented Interfaces:
Serializable,Iterable<Config>
public class ConfigList extends Object implements Serializable, Iterable<Config>
The config list holds all configurations for a single PID- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConfigList()
-
Method Summary
All Methods Instance Methods Concrete Methods 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 processedIterator<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 configurationsStringtoString()voiduninstall(long bundleId)Mark configurations for a bundle uninstall-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
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
public void add(Config c)
Add a configuration to the list.- Parameters:
c- The configuration.
-
addAll
public void addAll(ConfigList configs)
Add all configurations from another list- Parameters:
configs- The config list
-
size
public int size()
Get the size of the list of configurations- Returns:
-
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
public Config getLastInstalled()
-
setLastInstalled
public void setLastInstalled(Config lastInstalled)
-
uninstall
public void uninstall(long bundleId)
Mark configurations for a bundle uninstall- Parameters:
bundleId- The bundle id of the uninstalled bundle
-
-