Skip to main content

[datafx~datafx2:88] add logging info

  • From:
  • To:
  • Subject: [datafx~datafx2:88] add logging info
  • Date: Sun, 11 Aug 2013 07:25:08 +0000

Project:    datafx
Repository: datafx2
Revision:   88
Author:     johanvos
Date:       2013-08-11 07:24:45 UTC
Link:       

Log Message:
------------
add logging info


Revisions:
----------
88


Modified Paths:
---------------
datafx-core/src/main/java/org/datafx/provider/SingleObjectDataProvider.java


Diffs:
------
diff -r 32134acb5411 -r 4f8e9ec6238f 
datafx-core/src/main/java/org/datafx/provider/SingleObjectDataProvider.java
--- 
a/datafx-core/src/main/java/org/datafx/provider/SingleObjectDataProvider.java 
      Mon Aug 05 10:43:43 2013 +0200
+++ 
b/datafx-core/src/main/java/org/datafx/provider/SingleObjectDataProvider.java 
      Sun Aug 11 09:24:45 2013 +0200
@@ -34,6 +34,8 @@
     private Executor executor;
     private final DataReader<T> reader;
     private WriteBackHandler<T> writeBackHandler;
+    private static final Logger LOGGER = 
Logger.getLogger(SingleObjectDataProvider.class.getName());
+
     public SingleObjectDataProvider(DataReader<T> reader) {
         this(reader, null);
     }
@@ -86,7 +88,9 @@
                     public void handle(WorkerStateEvent arg0) {
                         T value = null;
                         try {
+                            LOGGER.fine("get the value of the task");
                             value = task.get();
+                            LOGGER.fine("task returned value "+value);
                         } catch (InterruptedException e) {
                             // Execution of the task was not working. So we 
do
                             // not need
@@ -98,6 +102,7 @@
                             // to update the property
                             return;
                         }
+                        LOGGER.log(Level.FINER, "I will set the value of {0} 
to {1}", new Object[]{objectProperty, value});
                         objectProperty.set(value);
                         if (writeBackHandler != null) {
                             checkProperties(value);
@@ -115,6 +120,7 @@
             @Override
             protected T call() throws Exception {
                 T entry = reader.get();
+                LOGGER.log(Level.FINE, "reader did read entry {0}", entry);
                 return entry;
             }
         };






[datafx~datafx2:88] add logging info

johanvos 08/11/2013
 
 
Close
loading
Please Confirm
Close