public class ConfigurationImpl extends Object
ConfigurationImpl
is the backend implementation of the
Configuration Admin Service Specification Configuration object
(section 104.4). Instances of this class are shared by multiple instances of
the ConfigurationAdapter
class, whose instances are actually returned
to clients.Modifier and Type | Method and Description |
---|---|
void |
delete() |
boolean |
equals(Object obj) |
TargetedPID |
getFactoryPid() |
String |
getFactoryPidString() |
TargetedPID |
getPid() |
String |
getPidString() |
Dictionary<String,Object> |
getProperties(boolean deepCopy)
Returns an optionally deep copy of the properties of this configuration
instance.
|
long |
getRevision()
Returns the revision of this configuration object.
|
int |
hashCode() |
protected static void |
replaceProperty(Dictionary properties,
String key,
String value) |
String |
toString() |
void |
update() |
void |
update(Dictionary<String,?> properties) |
public void delete() throws IOException
IOException
public String getPidString()
public TargetedPID getPid()
public String getFactoryPidString()
public TargetedPID getFactoryPid()
public Dictionary<String,Object> getProperties(boolean deepCopy)
This method returns a copy of the internal dictionary. If the
deepCopy
parameter is true array and collection values are
copied into new arrays or collections. Otherwise just a new dictionary
referring to the same objects is returned.
deepCopy
- true
if a deep copy is to be returned.public void update() throws IOException
IOException
public void update(Dictionary<String,?> properties) throws IOException
IOException
Configuration.update(java.util.Dictionary)
public long getRevision()
When getting both the configuration properties and this revision counter, the two calls should be synchronized on this instance to ensure configuration values and revision counter match.
protected static void replaceProperty(Dictionary properties, String key, String value)
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.