org.apache.felix.cm.impl.helper
Class ConfigurationMap<T>

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

public abstract class ConfigurationMap<T>
extends java.lang.Object


Constructor Summary
protected ConfigurationMap(java.lang.String[] configuredPids)
           
 
Method Summary
 boolean accepts(java.lang.String servicePid)
          Returns true if this map is foreseen to take a configuration with the given service PID.
protected abstract  java.util.Map<java.lang.String,T> createMap(int size)
           
protected  T get(TargetedPID key)
           
protected  java.lang.String getKeyPid(TargetedPID targetedPid)
           
protected  void put(TargetedPID key, T value)
           
protected abstract  void record(TargetedPID configPid, TargetedPID factoryPid, long revision)
           
protected abstract  boolean removeConfiguration(TargetedPID configPid, TargetedPID factoryPid)
           
 void setConfiguredPids(java.lang.String[] configuredPids)
           
protected abstract  boolean shallTake(TargetedPID configPid, TargetedPID factoryPid, long revision)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationMap

protected ConfigurationMap(java.lang.String[] configuredPids)
Method Detail

createMap

protected abstract java.util.Map<java.lang.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 java.lang.String getKeyPid(TargetedPID targetedPid)

accepts

public boolean accepts(java.lang.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(java.lang.String[] configuredPids)


Copyright © 2012 FuseSource, Corp.. All Rights Reserved.