directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1051266 - in /directory: apacheds/branches/alex_refactoring/core/src/main/java/org/apache/directory/server/core/prefs/ shared/branches/alex_refactoring/ldap/src/main/java/org/apache/directory/shared/ldap/util/ shared/branches/alex_refactor...
Date Mon, 20 Dec 2010 19:58:14 GMT
Author: akarasulu
Date: Mon Dec 20 19:58:13 2010
New Revision: 1051266

URL: http://svn.apache.org/viewvc?rev=1051266&view=rev
Log:
Continuing decoupling of shared:

  o added additional constructor on RuntimeMultiException
  o making PreferencesDictionary depend on RuntimeMultiException instead of commons NestedRuntimeException
  o moved PreferencesDictionary to shared-util module


Added:
    directory/shared/branches/alex_refactoring/util/src/main/java/org/apache/directory/shared/util/PreferencesDictionary.java
  (contents, props changed)
      - copied, changed from r1051214, directory/shared/branches/alex_refactoring/ldap/src/main/java/org/apache/directory/shared/ldap/util/PreferencesDictionary.java
Removed:
    directory/shared/branches/alex_refactoring/ldap/src/main/java/org/apache/directory/shared/ldap/util/PreferencesDictionary.java
Modified:
    directory/apacheds/branches/alex_refactoring/core/src/main/java/org/apache/directory/server/core/prefs/ServerSystemPreferences.java
    directory/shared/branches/alex_refactoring/util/src/main/java/org/apache/directory/shared/util/exception/RuntimeMultiException.java

Modified: directory/apacheds/branches/alex_refactoring/core/src/main/java/org/apache/directory/server/core/prefs/ServerSystemPreferences.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/alex_refactoring/core/src/main/java/org/apache/directory/server/core/prefs/ServerSystemPreferences.java?rev=1051266&r1=1051265&r2=1051266&view=diff
==============================================================================
--- directory/apacheds/branches/alex_refactoring/core/src/main/java/org/apache/directory/server/core/prefs/ServerSystemPreferences.java
(original)
+++ directory/apacheds/branches/alex_refactoring/core/src/main/java/org/apache/directory/server/core/prefs/ServerSystemPreferences.java
Mon Dec 20 19:58:13 2010
@@ -45,7 +45,7 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.message.AliasDerefMode;
 import org.apache.directory.shared.ldap.name.DN;
 import org.apache.directory.shared.ldap.schema.AttributeType;
-import org.apache.directory.shared.ldap.util.PreferencesDictionary;
+import org.apache.directory.shared.util.PreferencesDictionary;
 
 
 /**

Copied: directory/shared/branches/alex_refactoring/util/src/main/java/org/apache/directory/shared/util/PreferencesDictionary.java
(from r1051214, directory/shared/branches/alex_refactoring/ldap/src/main/java/org/apache/directory/shared/ldap/util/PreferencesDictionary.java)
URL: http://svn.apache.org/viewvc/directory/shared/branches/alex_refactoring/util/src/main/java/org/apache/directory/shared/util/PreferencesDictionary.java?p2=directory/shared/branches/alex_refactoring/util/src/main/java/org/apache/directory/shared/util/PreferencesDictionary.java&p1=directory/shared/branches/alex_refactoring/ldap/src/main/java/org/apache/directory/shared/ldap/util/PreferencesDictionary.java&r1=1051214&r2=1051266&rev=1051266&view=diff
==============================================================================
--- directory/shared/branches/alex_refactoring/ldap/src/main/java/org/apache/directory/shared/ldap/util/PreferencesDictionary.java
(original)
+++ directory/shared/branches/alex_refactoring/util/src/main/java/org/apache/directory/shared/util/PreferencesDictionary.java
Mon Dec 20 19:58:13 2010
@@ -17,7 +17,7 @@
  *  under the License. 
  *  
  */
-package org.apache.directory.shared.ldap.util;
+package org.apache.directory.shared.util;
 
 
 import java.util.Dictionary;
@@ -25,9 +25,9 @@ import java.util.Enumeration;
 import java.util.prefs.Preferences;
 import java.util.prefs.BackingStoreException;
 
-import org.apache.commons.lang.exception.NestableRuntimeException;
 import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.util.ArrayEnumeration;
+import org.apache.directory.shared.util.exception.RuntimeMultiException;
 
 
 /**
@@ -78,7 +78,7 @@ public class PreferencesDictionary exten
         }
         catch ( BackingStoreException e )
         {
-            throw new NestableRuntimeException( I18n.err( I18n.ERR_04423 ), e );
+            throw new RuntimeMultiException( I18n.err( I18n.ERR_04423 ), e );
         }
     }
 
@@ -91,7 +91,7 @@ public class PreferencesDictionary exten
         }
         catch ( BackingStoreException e )
         {
-            throw new NestableRuntimeException( I18n.err( I18n.ERR_04423 ), e );
+            throw new RuntimeMultiException( I18n.err( I18n.ERR_04423 ), e );
         }
     }
 
@@ -113,7 +113,7 @@ public class PreferencesDictionary exten
         }
         catch ( BackingStoreException e )
         {
-            throw new NestableRuntimeException( I18n.err( I18n.ERR_04423 ), e );
+            throw new RuntimeMultiException( I18n.err( I18n.ERR_04423 ), e );
         }
     }
 
@@ -127,7 +127,7 @@ public class PreferencesDictionary exten
         }
         catch ( BackingStoreException e )
         {
-            throw new NestableRuntimeException( I18n.err( I18n.ERR_04423 ), e );
+            throw new RuntimeMultiException( I18n.err( I18n.ERR_04423 ), e );
         }
     }
 

Propchange: directory/shared/branches/alex_refactoring/util/src/main/java/org/apache/directory/shared/util/PreferencesDictionary.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: directory/shared/branches/alex_refactoring/util/src/main/java/org/apache/directory/shared/util/exception/RuntimeMultiException.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/alex_refactoring/util/src/main/java/org/apache/directory/shared/util/exception/RuntimeMultiException.java?rev=1051266&r1=1051265&r2=1051266&view=diff
==============================================================================
--- directory/shared/branches/alex_refactoring/util/src/main/java/org/apache/directory/shared/util/exception/RuntimeMultiException.java
(original)
+++ directory/shared/branches/alex_refactoring/util/src/main/java/org/apache/directory/shared/util/exception/RuntimeMultiException.java
Mon Dec 20 19:58:13 2010
@@ -52,13 +52,20 @@ public class RuntimeMultiException exten
     }
 
 
+    public RuntimeMultiException( String message, Throwable t )
+    {
+        super( message );
+        addThrowable( t );
+    }
+
+
     /**
      * Constructs an Exception with a detailed message.
      * 
      * @param message
      *            The message associated with the exception.
      */
-    public RuntimeMultiException(String message)
+    public RuntimeMultiException( String message )
     {
         super( message );
     }



Mime
View raw message