import org.simantics.db.AsyncReadGraph;
import org.simantics.db.procedure.AsyncListener;
+import org.slf4j.LoggerFactory;
public abstract class AsyncListenerAdapter<T> implements AsyncListener<T> {
@Override
public void exception(AsyncReadGraph graph, Throwable t) {
+ LoggerFactory.getLogger(getClass()).error("Failed to listen", t);
}
@Override
import org.simantics.db.AsyncReadGraph;
import org.simantics.db.procedure.AsyncMultiListener;
+import org.slf4j.LoggerFactory;
public abstract class AsyncMultiListenerAdapter<T> implements AsyncMultiListener<T> {
@Override
public void exception(AsyncReadGraph graph, Throwable t) {
+ LoggerFactory.getLogger(getClass()).error("Failed to listen", t);
}
@Override
import org.simantics.db.AsyncReadGraph;
import org.simantics.db.procedure.AsyncSetListener;
+import org.slf4j.LoggerFactory;
public abstract class AsyncSetListenerAdapter<T> implements AsyncSetListener<T> {
@Override
public void exception(AsyncReadGraph graph, Throwable t) {
+ LoggerFactory.getLogger(getClass()).error("Failed to listen", t);
}
@Override
package org.simantics.db.common.procedure.adapter;
import org.simantics.db.procedure.Listener;
+import org.slf4j.LoggerFactory;
public abstract class ListenerAdapter<T> implements Listener<T> {
@Override
public void exception(Throwable t) {
+ LoggerFactory.getLogger(getClass()).error("Failed to listen", t);
}
@Override
*******************************************************************************/
package org.simantics.db.common.procedure.adapter;
+import org.simantics.db.ReadGraph;
import org.simantics.db.procedure.MultiListener;
+import org.slf4j.LoggerFactory;
public abstract class MultiListenerAdapter<Result> implements MultiListener<Result> {
-
+
@Override
public void execute(Result result) {
}
@Override
public void exception(Throwable t) {
+ LoggerFactory.getLogger(getClass()).error("Failed to listen", t);
}
@Override
package org.simantics.db.common.procedure.adapter;
import org.simantics.db.procedure.SetListener;
+import org.slf4j.LoggerFactory;
public abstract class SetListenerAdapter<T> implements SetListener<T> {
@Override
public void exception(Throwable t) {
+ LoggerFactory.getLogger(getClass()).error("Failed to listen", t);
}
@Override
import org.simantics.db.ReadGraph;
import org.simantics.db.procedure.SyncListener;
+import org.slf4j.LoggerFactory;
public abstract class SyncListenerAdapter<T> implements SyncListener<T> {
@Override
public void exception(ReadGraph graph, Throwable t) {
+ LoggerFactory.getLogger(getClass()).error("Failed to listen", t);
}
@Override
import org.simantics.db.ReadGraph;
import org.simantics.db.procedure.SyncMultiListener;
+import org.slf4j.LoggerFactory;
public abstract class SyncMultiListenerAdapter<T> implements SyncMultiListener<T> {
@Override
public void exception(ReadGraph graph, Throwable t) {
+ LoggerFactory.getLogger(getClass()).error("Failed to listen", t);
}
@Override
import org.simantics.db.ReadGraph;
import org.simantics.db.procedure.SyncSetListener;
+import org.slf4j.LoggerFactory;
public abstract class SyncSetListenerAdapter<T> implements SyncSetListener<T> {
@Override
public void exception(ReadGraph graph, Throwable t) {
+ LoggerFactory.getLogger(getClass()).error("Failed to listen", t);
}
@Override