diff options
author | Maria Odea B. Ching <oching@apache.org> | 2007-08-22 09:44:38 +0000 |
---|---|---|
committer | Maria Odea B. Ching <oching@apache.org> | 2007-08-22 09:44:38 +0000 |
commit | 4ca6b3fe228ad5d418b4b0f33506f7614ea485a8 (patch) | |
tree | 5bf6e0143f75cfdb9430e4bd7e2542a5f93f8725 /archiva-base/archiva-configuration | |
parent | e1a2228627a50aa610f9d19945167836d9c1f3ce (diff) | |
download | archiva-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.java | 7 |
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 ) |