Class Injectors

java.lang.Object
com.complexible.common.inject.Injectors

public final class Injectors extends Object

Utility class for working with Injectors and Guice in general.

Since:
1.2
Version:
2.2.1
Author:
Michael Grove
  • Method Details

    • instancesOf

      public static <T> Iterable<? extends T> instancesOf(com.google.inject.Injector theInjector, Class<T> theClass)
    • providers

      public static <T> Iterable<com.google.inject.Provider<T>> providers(com.google.inject.Injector theInjector, Class<T> theClass)
    • providers

      public static <T> Iterable<com.google.inject.Provider<T>> providers(List<com.google.inject.Binding<T>> theBindingsByType)
    • prettyPrintErrors

      public static void prettyPrintErrors(Iterable<com.google.inject.spi.Message> theErrors)
    • install

      public static <T> void install(com.google.inject.Binder theBinder, Class<T> theClass)