org.apache.felix.cm.impl.helper
Class ConfigurationMap<T>
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurationMap
protected ConfigurationMap(java.lang.String[] configuredPids)
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 © 2006-2013 The Apache Software Foundation. All Rights Reserved.