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
    void add​(Config c)
    Add a configuration to the list.
    void addAll​(ConfigList configs)
    Add all configurations from another list
    long getChangeCount()
    Get the change count.
    Config getLastInstalled()  
    boolean hasChanges()
    Does this list need to be processed
    java.util.Iterator<Config> iterator()  
    void setChangeCount​(long value)
    Set the change count
    void setHasChanges​(boolean value)
    Set the has changes flag.
    void setLastInstalled​(Config lastInstalled)  
    int size()
    Get the size of the list of configurations
    java.lang.String toString()  
    void uninstall​(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
  • Constructor Details

  • Method Details

    • hasChanges

      public boolean hasChanges()
      Does this list need to be processed
      Returns:
      true if 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:
    • iterator

      public java.util.Iterator<Config> iterator()
      Specified by:
      iterator in interface java.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

      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
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object