Class Injectors


  • public final class Injectors
    extends java.lang.Object
    Utility class to construct injector types.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Injectors()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> Injector<java.lang.Object> cast​(Injector<T> injector, java.lang.Class<T> type)
      Construct a casting injector.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Injectors

        private Injectors()
    • Method Detail

      • cast

        public static <T> Injector<java.lang.Object> cast​(Injector<T> injector,
                                                          java.lang.Class<T> type)
        Construct a casting injector.
        Type Parameters:
        T - the type of the injected value
        Parameters:
        injector - an injector of any type
        type - a class of the injected type
        Returns:
        an Injector which implements Injector<Object>