jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r582825 - /jackrabbit/trunk/contrib/spi/spi-logger/src/main/java/org/apache/jackrabbit/spi/logger/RepositoryServiceLogger.java
Date Mon, 08 Oct 2007 13:37:13 GMT
Author: reschke
Date: Mon Oct  8 06:37:13 2007
New Revision: 582825

URL: http://svn.apache.org/viewvc?rev=582825&view=rev
Log:
JCR-1159: update logger wrapper to RepositoryService interface changes

Modified:
    jackrabbit/trunk/contrib/spi/spi-logger/src/main/java/org/apache/jackrabbit/spi/logger/RepositoryServiceLogger.java

Modified: jackrabbit/trunk/contrib/spi/spi-logger/src/main/java/org/apache/jackrabbit/spi/logger/RepositoryServiceLogger.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/spi-logger/src/main/java/org/apache/jackrabbit/spi/logger/RepositoryServiceLogger.java?rev=582825&r1=582824&r2=582825&view=diff
==============================================================================
--- jackrabbit/trunk/contrib/spi/spi-logger/src/main/java/org/apache/jackrabbit/spi/logger/RepositoryServiceLogger.java
(original)
+++ jackrabbit/trunk/contrib/spi/spi-logger/src/main/java/org/apache/jackrabbit/spi/logger/RepositoryServiceLogger.java
Mon Oct  8 06:37:13 2007
@@ -75,28 +75,20 @@
         this.log = log;
     }
 
-    public IdFactory getIdFactory() {
-        try {
-            return (IdFactory) execute(new Callable() {
-                public Object call() {
-                    return service.getIdFactory();
-                }
-            }, "getIdFactory()", new Object[]{});
-        } catch (RepositoryException e) {
-            throw new InternalError();
-        }
+    public IdFactory getIdFactory() throws RepositoryException {
+        return (IdFactory) execute(new Callable() {
+            public Object call() throws RepositoryException {
+                return service.getIdFactory();
+            }
+        }, "getIdFactory()", new Object[]{});
     }
 
-    public QValueFactory getQValueFactory() {
-        try {
-            return (QValueFactory) execute(new Callable() {
-                public Object call() {
-                    return service.getQValueFactory();
-                }
-            }, "getQValueFactory()", new Object[]{});
-        } catch (RepositoryException e) {
-            throw new InternalError();
-        }
+    public QValueFactory getQValueFactory() throws RepositoryException {
+        return (QValueFactory) execute(new Callable() {
+            public Object call() throws RepositoryException {
+                return service.getQValueFactory();
+            }
+        }, "getQValueFactory()", new Object[]{});
     }
 
     public Map getRepositoryDescriptors() throws RepositoryException {



Mime
View raw message