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

com.github.dxee.dject.event.guava.GuavaEventRegistration Maven / Gradle / Ivy

Go to download

A collection of guice extensions, help to improve the developer experience of guice.

There is a newer version: 1.5.1
Show newest version
package com.github.dxee.dject.event.guava;

import com.github.dxee.dject.event.ApplicationEventRegistration;
import com.google.common.eventbus.EventBus;

class GuavaEventRegistration implements ApplicationEventRegistration {

    private final EventBus eventBus;
    private final GuavaSubscriberProxy subscriber;

    public GuavaEventRegistration(EventBus eventBus, GuavaSubscriberProxy subscriber) {
        this.eventBus = eventBus;
        this.subscriber = subscriber;
    }

    public void unregister() {
        this.eventBus.unregister(subscriber);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy