Class ConfigurationMap<T>

java.lang.Object
org.apache.felix.cm.impl.helper.ConfigurationMap<T>
Direct Known Subclasses:
ManagedServiceFactoryConfigurationMap

public abstract class ConfigurationMap<T> extends Object
  • Constructor Details

    • ConfigurationMap

      protected ConfigurationMap(String[] configuredPids)
  • Method Details

    • createMap

      protected abstract Map<String,T> createMap(int size)
    • shallTake

      protected abstract boolean shallTake(TargetedPID configPid, TargetedPID factoryPid, long revision)
    • record

      protected abstract void record(TargetedPID configPid, TargetedPID factoryPid, long revision)
    • removeConfiguration

      protected abstract boolean removeConfiguration(TargetedPID configPid, TargetedPID factoryPid)
    • get

      protected T get(TargetedPID key)
    • put

      protected void put(TargetedPID key, T value)
    • getKeyPid

      protected String getKeyPid(TargetedPID targetedPid)
    • accepts

      public boolean accepts(String servicePid)
      Returns true if this map is foreseen to take a configuration with the given service PID.
      Parameters:
      servicePid - The service PID of the configuration which is the part of the targeted PID without the bundle's symbolic name, version, and location; i.e. TargetedPID.getServicePid()
      Returns:
      true if this map is configured to take configurations for the service PID.
    • setConfiguredPids

      public void setConfiguredPids(String[] configuredPids)