Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.kasource.kaevent.event.dispatch;
 
 
 import  com.google.inject.Inject;
 import  com.google.inject.Singleton;

Guice Event Dispatcher.

Author(s):
rikardwi
@Singleton
public class GuiceEventDispatcher extends DefaultEventDispatcher {

 

Used when configured with Guice.

Parameters:
channelRegister Channel Register
channelFactory Channel Factory
sourceObjectListenerRegister Source Object Listener Register
eventQueue Event Queue
eventRouter Event Router
configurer Configurer for the Guice environment.
	@Inject
    GuiceEventDispatcher(ChannelRegister channelRegister
    							  ChannelFactory channelFactory,
    							  SourceObjectListenerRegister sourceObjectListenerRegister
    							  DispatcherQueueThread eventQueue,
    							  EventRouter eventRouter,
    							  GuiceKaEventConfigurer configurer) {
        setChannelFactory(channelFactory);
        setChannelRegister(channelRegister);
        setSourceObjectListenerRegister(sourceObjectListenerRegister);
        setEventQueue(eventQueue);
        setEventRouter(eventRouter);
        configurer.configure();
    }
New to GrepCode? Check out our FAQ X