summaryrefslogtreecommitdiffstats
path: root/archiva-base/archiva-configuration
diff options
context:
space:
mode:
authorMaria Odea B. Ching <oching@apache.org>2007-08-22 09:44:38 +0000
committerMaria Odea B. Ching <oching@apache.org>2007-08-22 09:44:38 +0000
commit4ca6b3fe228ad5d418b4b0f33506f7614ea485a8 (patch)
tree5bf6e0143f75cfdb9430e4bd7e2542a5f93f8725 /archiva-base/archiva-configuration
parente1a2228627a50aa610f9d19945167836d9c1f3ce (diff)
downloadarchiva-4ca6b3fe228ad5d418b4b0f33506f7614ea485a8.tar.gz
archiva-4ca6b3fe228ad5d418b4b0f33506f7614ea485a8.zip
Synchronized save() and afterConfigurationChange() in DefaultArchivaConfiguration.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@568531 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-base/archiva-configuration')
-rw-r--r--archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java b/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java
index 376fac46d..7ed026b7b 100644
--- a/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java
+++ b/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java
@@ -137,7 +137,7 @@ public class DefaultArchivaConfiguration
return registry.getSubset( KEY );
}
- public void save( Configuration configuration )
+ public synchronized void save( Configuration configuration )
throws RegistryException, IndeterminateConfigurationException
{
Registry section = registry.getSection( KEY + ".user" );
@@ -264,7 +264,10 @@ public class DefaultArchivaConfiguration
public void afterConfigurationChange( Registry registry, String propertyName, Object propertyValue )
{
- configuration = null;
+ synchronized( configuration )
+ {
+ configuration = null;
+ }
}
private String removeExpressions( String directory )