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

net.serenitybdd.plugins.jira.guice.Injectors Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
package net.serenitybdd.plugins.jira.guice;

import com.google.inject.Guice;
import com.google.inject.Injector;

/**
 * Somewhere to hold the Guice injector.
 * There might be a better way to do this.
 */
public class Injectors {

    private static Injector injector;

    public static Injector getInjector() {
        if (injector == null) {
            injector = Guice.createInjector(new ThucydidesJiraModule());
        }
        return injector;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy