Class EventBusModule

java.lang.Object
com.google.inject.AbstractModule
ru.vyarus.guicey.eventbus.module.EventBusModule
All Implemented Interfaces:
com.google.inject.Module

public class EventBusModule extends com.google.inject.AbstractModule
Module binds provided EventBus instance. Publishers should inject event bus for posting events. Listeners must only define method with event as argument and annotated with Subscribe. All guice beans with annotated methods registered automatically.
Since:
12.10.2016
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    EventBusModule(com.google.common.eventbus.EventBus eventbus, com.google.inject.matcher.Matcher<? super com.google.inject.TypeLiteral<?>> typeMatcher)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     

    Methods inherited from class com.google.inject.AbstractModule

    addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestInjection, requestStaticInjection, requireBinding, requireBinding

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EventBusModule

      public EventBusModule(com.google.common.eventbus.EventBus eventbus, com.google.inject.matcher.Matcher<? super com.google.inject.TypeLiteral<?>> typeMatcher)
  • Method Details

    • configure

      protected void configure()
      Overrides:
      configure in class com.google.inject.AbstractModule