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

com.github.zhengframework.event.EventModule Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
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