com.github.zhengframework.event.EventModule Maven / Gradle / Ivy
package com.github.zhengframework.event;
import com.google.inject.AbstractModule;
import com.google.inject.Provider;
import com.google.inject.matcher.Matchers;
public class EventModule extends AbstractModule {
@Override
protected void configure() {
Provider dispatcherProvider = getProvider(EventDispatcher.class);
bindListener(Matchers.any(), new EventSubscribingTypeListener(dispatcherProvider));
bindListener(Matchers.any(), new EventSubscribingProvisionListener(
dispatcherProvider));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy