polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject [1/5] polygene-java git commit: Removing SLF4J dependency, and fixing faulty reload of preferences.
Date Fri, 14 Apr 2017 07:47:02 GMT
Repository: polygene-java
Updated Branches:
  refs/heads/develop 6326c61e3 -> 2cd936e43


Removing SLF4J dependency, and fixing faulty reload of preferences.


Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/3ebedd94
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/3ebedd94
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/3ebedd94

Branch: refs/heads/develop
Commit: 3ebedd94b651e0e2f9eb21410f318a60751d0870
Parents: 6326c61
Author: niclas <niclas@spicter.com>
Authored: Fri Apr 14 11:48:14 2017 +0800
Committer: niclas <niclas@spicter.com>
Committed: Fri Apr 14 11:48:14 2017 +0800

----------------------------------------------------------------------
 extensions/entitystore-preferences/build.gradle              | 2 --
 .../entitystore/preferences/PreferencesEntityStoreMixin.java | 8 +-------
 2 files changed, 1 insertion(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/3ebedd94/extensions/entitystore-preferences/build.gradle
----------------------------------------------------------------------
diff --git a/extensions/entitystore-preferences/build.gradle b/extensions/entitystore-preferences/build.gradle
index b4681d6..f875219 100644
--- a/extensions/entitystore-preferences/build.gradle
+++ b/extensions/entitystore-preferences/build.gradle
@@ -27,8 +27,6 @@ jar { manifest { name = "Apache Polygeneâ„¢ Extension - EntityStore - Preference
 dependencies {
   api polygene.core.bootstrap
 
-  implementation libraries.slf4j_api
-
   runtimeOnly polygene.core.runtime
 
   testImplementation polygene.core.testsupport

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/3ebedd94/extensions/entitystore-preferences/src/main/java/org/apache/polygene/entitystore/preferences/PreferencesEntityStoreMixin.java
----------------------------------------------------------------------
diff --git a/extensions/entitystore-preferences/src/main/java/org/apache/polygene/entitystore/preferences/PreferencesEntityStoreMixin.java
b/extensions/entitystore-preferences/src/main/java/org/apache/polygene/entitystore/preferences/PreferencesEntityStoreMixin.java
index 4d6e65a..7958840 100644
--- a/extensions/entitystore-preferences/src/main/java/org/apache/polygene/entitystore/preferences/PreferencesEntityStoreMixin.java
+++ b/extensions/entitystore-preferences/src/main/java/org/apache/polygene/entitystore/preferences/PreferencesEntityStoreMixin.java
@@ -67,8 +67,6 @@ import org.apache.polygene.spi.entitystore.EntityStoreSPI;
 import org.apache.polygene.spi.entitystore.EntityStoreUnitOfWork;
 import org.apache.polygene.spi.entitystore.StateCommitter;
 import org.apache.polygene.spi.entitystore.helpers.DefaultEntityState;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 /**
  * Implementation of EntityStore that is backed by the Preferences API.
@@ -101,8 +99,6 @@ public class PreferencesEntityStoreMixin
 
     private Preferences root;
 
-    public Logger logger;
-
     public ScheduledThreadPoolExecutor reloadExecutor;
 
     @Service
@@ -113,8 +109,6 @@ public class PreferencesEntityStoreMixin
         throws Exception
     {
         root = getApplicationRoot();
-        logger = LoggerFactory.getLogger( PreferencesEntityStoreService.class.getName() );
-        logger.info( "Preferences store:" + root.absolutePath() );
 
         // Reload underlying store every 60 seconds
         reloadExecutor = new ScheduledThreadPoolExecutor( 1 );
@@ -130,7 +124,7 @@ public class PreferencesEntityStoreMixin
             }
             catch( BackingStoreException e )
             {
-                logger.warn( "Could not reload preferences", e );
+                throw new EntityStoreException( "Could not reload preferences", e );
             }
         }, 0, 60, TimeUnit.SECONDS );
     }


Mime
View raw message