summaryrefslogtreecommitdiffstats
path: root/base/common/src
diff options
context:
space:
mode:
authorFraser Tweedale <ftweedal@redhat.com>2017-02-07 17:39:33 +1000
committerFraser Tweedale <ftweedal@redhat.com>2017-04-26 17:45:51 +1000
commit6562b05a73090c0f7882a9684a8ceac2666e4401 (patch)
tree1bf7b0e9fc0eff9ee8fb09f0a8f77395c934a287 /base/common/src
parent8caedd6723f4885d4aff2348aa3d9fc850627aa1 (diff)
downloadpki-6562b05a73090c0f7882a9684a8ceac2666e4401.tar.gz
pki-6562b05a73090c0f7882a9684a8ceac2666e4401.tar.xz
pki-6562b05a73090c0f7882a9684a8ceac2666e4401.zip
ISourceConfigStore: add clear() method to interface
The SourceConfigStore load() method does not clear the config store, but this might be necessary to avoid stale data if wanting to perform a complete replacement of the data (e.g. reload from file). We should not change the behaviour of load() in case some code is relying on the current behaviour, so add the clear() method to the interface. Part of: https://fedorahosted.org/pki/ticket/2588 Change-Id: Ia139a49f1a23c4f9410d7b94c9a4c8f14f29fe93
Diffstat (limited to 'base/common/src')
-rw-r--r--base/common/src/com/netscape/certsrv/base/ISourceConfigStore.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/base/ISourceConfigStore.java b/base/common/src/com/netscape/certsrv/base/ISourceConfigStore.java
index 42637c258..8eb86c2ba 100644
--- a/base/common/src/com/netscape/certsrv/base/ISourceConfigStore.java
+++ b/base/common/src/com/netscape/certsrv/base/ISourceConfigStore.java
@@ -63,6 +63,11 @@ public interface ISourceConfigStore extends Serializable {
public Enumeration<String> keys();
/**
+ * Clear the config store.
+ */
+ public void clear();
+
+ /**
* Reads a config store from an input stream.
*
* @param in input stream where the properties are located