com.iteaj.izone.spi.event.VoidEventPublisher Maven / Gradle / Ivy
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;
}
}