com.github.linyuzai.plugin.autoconfigure.event.ApplicationConnectionEventPublisher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of concept-plugin-spring-boot-starter Show documentation
Show all versions of concept-plugin-spring-boot-starter Show documentation
Dynamic loading classes with external jar simply and gracefully
The newest version!
package com.github.linyuzai.plugin.autoconfigure.event;
import com.github.linyuzai.plugin.core.event.DefaultPluginEventPublisher;
import com.github.linyuzai.plugin.core.event.PluginEventPublisher;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.event.EventListener;
/**
* 支持 {@link EventListener} 的事件发布器
*/
@Getter
@RequiredArgsConstructor
public class ApplicationConnectionEventPublisher extends DefaultPluginEventPublisher {
private final ApplicationEventPublisher publisher;
@Override
public void publish(Object event) {
super.publish(event);
publisher.publishEvent(event);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy