Search in sources :

Example 1 with ExternalEventBrokerImpl

use of io.github.vocabhunter.gui.event.ExternalEventBrokerImpl in project VocabHunter by VocabHunter.

the class OsxEventSourceModule method provideExternalEventBroker.

@Provides
public ExternalEventBroker provideExternalEventBroker(final CommandLineEventSource commandLineEventSource, final OsxEventSource osxEventSource, final ThreadPoolTool threadPoolTool) {
    ExternalEventBrokerImpl externalEventBroker = new ExternalEventBrokerImpl(threadPoolTool);
    commandLineEventSource.setListener(externalEventBroker);
    osxEventSource.setListener(externalEventBroker);
    return externalEventBroker;
}
Also used : ExternalEventBrokerImpl(io.github.vocabhunter.gui.event.ExternalEventBrokerImpl) Provides(com.google.inject.Provides)

Example 2 with ExternalEventBrokerImpl

use of io.github.vocabhunter.gui.event.ExternalEventBrokerImpl in project VocabHunter by VocabHunter.

the class StandardEventSourceModule method provideExternalEventBroker.

@Provides
public ExternalEventBroker provideExternalEventBroker(final CommandLineEventSource commandLineEventSource, final ThreadPoolTool threadPoolTool) {
    ExternalEventBrokerImpl externalEventBroker = new ExternalEventBrokerImpl(threadPoolTool);
    commandLineEventSource.setListener(externalEventBroker);
    return externalEventBroker;
}
Also used : ExternalEventBrokerImpl(io.github.vocabhunter.gui.event.ExternalEventBrokerImpl) Provides(com.google.inject.Provides)

Aggregations

Provides (com.google.inject.Provides)2 ExternalEventBrokerImpl (io.github.vocabhunter.gui.event.ExternalEventBrokerImpl)2