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

com.github.dxee.dject.lifecycle.JSR250Module 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.2.1
Show newest version
package com.github.dxee.dject.lifecycle;

import com.google.inject.AbstractModule;
import com.google.inject.multibindings.Multibinder;

/**
 * This module add JSR250 lifecycle support.
 * @author bing.fan
 * 2018-06-11 11:57
 */
public class JSR250Module extends AbstractModule {
    @Override
    protected void configure() {
        Multibinder.newSetBinder(binder(), PostConstructLifecycleFeature.class)
                .addBinding()
                .to(JSR250PostConstructLifecycleFeature.class);
        Multibinder.newSetBinder(binder(), PreDestroyLifecycleFeature.class)
                .addBinding()
                .to(JSR250PreDestroyLifecycleFeature.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy