public class ConfigurationImpl
extends java.lang.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(java.lang.Object obj) |
TargetedPID |
getFactoryPid() |
java.lang.String |
getFactoryPidString() |
TargetedPID |
getPid() |
java.lang.String |
getPidString() |
java.util.Dictionary |
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(java.util.Dictionary properties,
java.lang.String key,
java.lang.String value) |
java.lang.String |
toString() |
void |
update() |
void |
update(java.util.Dictionary properties) |
public void delete() throws java.io.IOException
java.io.IOException
public java.lang.String getPidString()
public TargetedPID getPid()
public java.lang.String getFactoryPidString()
public TargetedPID getFactoryPid()
public java.util.Dictionary 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 java.io.IOException
java.io.IOException
public void update(java.util.Dictionary properties) throws java.io.IOException
java.io.IOException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
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(java.util.Dictionary properties, java.lang.String key, java.lang.String value)
Copyright © 2006-2015 The Apache Software Foundation. All Rights Reserved.