public abstract class ConfigurationMap<T> extends Object
Modifier | Constructor and Description |
---|---|
protected |
ConfigurationMap(String[] configuredPids) |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(String servicePid)
Returns
true if this map is foreseen to take a
configuration with the given service PID. |
protected abstract Map<String,T> |
createMap(int size) |
protected T |
get(TargetedPID key) |
protected 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(String[] configuredPids) |
protected abstract boolean |
shallTake(TargetedPID configPid,
TargetedPID factoryPid,
long revision) |
protected ConfigurationMap(String[] configuredPids)
protected abstract boolean shallTake(TargetedPID configPid, TargetedPID factoryPid, long revision)
protected abstract void record(TargetedPID configPid, TargetedPID factoryPid, long revision)
protected abstract boolean removeConfiguration(TargetedPID configPid, TargetedPID factoryPid)
protected T get(TargetedPID key)
protected void put(TargetedPID key, T value)
protected String getKeyPid(TargetedPID targetedPid)
public boolean accepts(String servicePid)
true
if this map is foreseen to take a
configuration with the given service PID.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()
true
if this map is configured to take
configurations for the service PID.public void setConfiguredPids(String[] configuredPids)
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.