commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1481149 - in /commons/proper/configuration/trunk/src: main/java/org/apache/commons/configuration/ main/java/org/apache/commons/configuration/sync/ test/java/org/apache/commons/configuration/
Date Fri, 10 May 2013 19:13:59 GMT
Author: oheger
Date: Fri May 10 19:13:59 2013
New Revision: 1481149

URL: http://svn.apache.org/r1481149
Log:
Moved Synchronizer and related classes into a separate package.

Added:
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/sync/
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/sync/NoOpSynchronizer.java
      - copied, changed from r1481148, commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/NoOpSynchronizer.java
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/sync/Synchronizer.java
      - copied, changed from r1481148, commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/Synchronizer.java
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/sync/package.html
Removed:
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/NoOpSynchronizer.java
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/Synchronizer.java
Modified:
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/AbstractConfiguration.java
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/BaseHierarchicalConfiguration.java
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/ConfigurationUtils.java
    commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/SynchronizerTestImpl.java
    commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestAbstractConfigurationSynchronization.java
    commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestConfigurationUtils.java

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/AbstractConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/AbstractConfiguration.java?rev=1481149&r1=1481148&r2=1481149&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/AbstractConfiguration.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/AbstractConfiguration.java
Fri May 10 19:13:59 2013
@@ -37,6 +37,8 @@ import org.apache.commons.configuration.
 import org.apache.commons.configuration.interpol.ConfigurationInterpolator;
 import org.apache.commons.configuration.interpol.InterpolatorSpecification;
 import org.apache.commons.configuration.interpol.Lookup;
+import org.apache.commons.configuration.sync.NoOpSynchronizer;
+import org.apache.commons.configuration.sync.Synchronizer;
 import org.apache.commons.lang.BooleanUtils;
 import org.apache.commons.lang.ClassUtils;
 import org.apache.commons.lang.ObjectUtils;

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/BaseHierarchicalConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/BaseHierarchicalConfiguration.java?rev=1481149&r1=1481148&r2=1481149&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/BaseHierarchicalConfiguration.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/BaseHierarchicalConfiguration.java
Fri May 10 19:13:59 2013
@@ -30,6 +30,8 @@ import java.util.Stack;
 
 import org.apache.commons.configuration.event.ConfigurationEvent;
 import org.apache.commons.configuration.event.ConfigurationListener;
+import org.apache.commons.configuration.sync.NoOpSynchronizer;
+import org.apache.commons.configuration.sync.Synchronizer;
 import org.apache.commons.configuration.tree.ConfigurationNode;
 import org.apache.commons.configuration.tree.ConfigurationNodeVisitorAdapter;
 import org.apache.commons.configuration.tree.DefaultConfigurationNode;

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/ConfigurationUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/ConfigurationUtils.java?rev=1481149&r1=1481148&r2=1481149&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/ConfigurationUtils.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/ConfigurationUtils.java
Fri May 10 19:13:59 2013
@@ -33,6 +33,8 @@ import org.apache.commons.configuration.
 import org.apache.commons.configuration.event.ConfigurationListener;
 import org.apache.commons.configuration.event.EventSource;
 import org.apache.commons.configuration.reloading.Reloadable;
+import org.apache.commons.configuration.sync.NoOpSynchronizer;
+import org.apache.commons.configuration.sync.Synchronizer;
 import org.apache.commons.configuration.tree.ExpressionEngine;
 import org.apache.commons.lang.StringUtils;
 import org.apache.commons.logging.Log;

Copied: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/sync/NoOpSynchronizer.java
(from r1481148, commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/NoOpSynchronizer.java)
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/sync/NoOpSynchronizer.java?p2=commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/sync/NoOpSynchronizer.java&p1=commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/NoOpSynchronizer.java&r1=1481148&r2=1481149&rev=1481149&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/NoOpSynchronizer.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/sync/NoOpSynchronizer.java
Fri May 10 19:13:59 2013
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.commons.configuration;
+package org.apache.commons.configuration.sync;
 
 /**
  * <p>

Copied: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/sync/Synchronizer.java
(from r1481148, commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/Synchronizer.java)
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/sync/Synchronizer.java?p2=commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/sync/Synchronizer.java&p1=commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/Synchronizer.java&r1=1481148&r2=1481149&rev=1481149&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/Synchronizer.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/sync/Synchronizer.java
Fri May 10 19:13:59 2013
@@ -14,7 +14,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.commons.configuration;
+package org.apache.commons.configuration.sync;
+
+import org.apache.commons.configuration.AbstractConfiguration;
 
 /**
  * <p>

Added: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/sync/package.html
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/sync/package.html?rev=1481149&view=auto
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/sync/package.html
(added)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/sync/package.html
Fri May 10 19:13:59 2013
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<html>
+<head>
+</head>
+
+<body>
+<p>
+A package containing interfaces and classes related to synchronization of
+configurations.
+</p>
+<p>
+Whether a configuration object has to be thread-safe or not is application-specific.
+Therefore, this library allows an application to adapt configuration objects to
+their requirements regarding thread-safety by assigning them so-called
+<code>Synchronizer</code> objects. A configuration invokes its
+<code>Synchronizer</code> every time it is accessed (in read or write mode).
+If configurations are not accessed concurrently by multiple threads, a simple
+dummy <code>Synchronizer</code> can be used - this is also the default
+setting. To ensure thread-safety, a fully functional implementation has to be
+set.
+</p>
+<p>
+<font size="-2">$Id$</font>
+</p>
+</body>
+</html>

Modified: commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/SynchronizerTestImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/SynchronizerTestImpl.java?rev=1481149&r1=1481148&r2=1481149&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/SynchronizerTestImpl.java
(original)
+++ commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/SynchronizerTestImpl.java
Fri May 10 19:13:59 2013
@@ -19,6 +19,8 @@ package org.apache.commons.configuration
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
 
+import org.apache.commons.configuration.sync.Synchronizer;
+
 /**
  * A test implementation of Synchronizer which allows keeping track about
  * the methods called by the configuration.

Modified: commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestAbstractConfigurationSynchronization.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestAbstractConfigurationSynchronization.java?rev=1481149&r1=1481148&r2=1481149&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestAbstractConfigurationSynchronization.java
(original)
+++ commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestAbstractConfigurationSynchronization.java
Fri May 10 19:13:59 2013
@@ -23,6 +23,7 @@ import static org.junit.Assert.assertTru
 
 import org.apache.commons.configuration.SynchronizerTestImpl.Methods;
 import org.apache.commons.configuration.io.FileHandler;
+import org.apache.commons.configuration.sync.NoOpSynchronizer;
 import org.junit.Before;
 import org.junit.Test;
 

Modified: commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestConfigurationUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestConfigurationUtils.java?rev=1481149&r1=1481148&r2=1481149&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestConfigurationUtils.java
(original)
+++ commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestConfigurationUtils.java
Fri May 10 19:13:59 2013
@@ -39,6 +39,7 @@ import org.apache.commons.configuration.
 import org.apache.commons.configuration.event.ConfigurationErrorListener;
 import org.apache.commons.configuration.event.ConfigurationListener;
 import org.apache.commons.configuration.event.EventSource;
+import org.apache.commons.configuration.sync.NoOpSynchronizer;
 import org.apache.commons.configuration.tree.DefaultExpressionEngine;
 import org.apache.commons.configuration.tree.ExpressionEngine;
 import org.easymock.EasyMock;



Mime
View raw message