All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zipwhip.concurrent.DebugObservableHelper Maven / Gradle / Ivy

package com.zipwhip.concurrent;

import com.zipwhip.events.ObservableHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created with IntelliJ IDEA.
 * User: Michael
 * Date: 9/11/12
 * Time: 2:36 PM
 *
 */
public class DebugObservableHelper extends ObservableHelperAdapter {

    private static final Logger LOGGER = LoggerFactory.getLogger(DebugObservableHelper.class);

    public DebugObservableHelper(ObservableHelper observableHelper) {
        super(observableHelper);
    }

    @Override
    public void notifyObservers(Object sender, T result) {
        LOGGER.debug(String.format("%s: Notifying event [%s, %s]", this, sender, result));
        super.notifyObservers(sender, result);    //To change body of overridden methods use File | Settings | File Templates.
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy