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

com.iteaj.izone.spi.event.VoidEventPublisher Maven / Gradle / Ivy

There is a newer version: 1.2.1
Show newest version
package com.iteaj.izone.spi.event;

import java.util.List;

/**
 * create time: 2020/4/24
 *  空的事件发布
 * @author iteaj
 * @since 1.0
 */
public class VoidEventPublisher implements EventPublisher {

    public VoidEventPublisher() {
        LOGGER.warn("正在使用VoidEventPublisher, 所有的事件({})将不会被发布", Listener.class.getSimpleName());
    }

    @Override
    public void publish(Event event) {

    }

    @Override
    public List listeners() {
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy