Package org.jclouds.events.config
Class EventBusModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.jclouds.events.config.EventBusModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class EventBusModule extends com.google.inject.AbstractModule
Configures theEventBus
to be used in the platform.This class will provide an
AsyncEventBus
to be used to provide a basic pub/sub system for asynchronous operations.- See Also:
ExecutorServiceModule
,AsyncEventBus
,EventBus
,AsyncBus
-
-
Constructor Summary
Constructors Constructor Description EventBusModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure()
Configures theEventBus
to be singleton and enables theAsyncBus
annotation.-
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, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Method Detail
-
configure
protected void configure()
Configures theEventBus
to be singleton and enables theAsyncBus
annotation.- Overrides:
configure
in classcom.google.inject.AbstractModule
-
-