Class Injectors


  • public class Injectors
    extends java.lang.Object
    Factory for Injectors of various types.
    • Constructor Summary

      Constructors 
      Constructor Description
      Injectors()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.int4.dirk.api.Injector autoDiscovering​(org.int4.dirk.spi.scope.ScopeResolver... scopeResolvers)
      Creates an Injector with auto discovery activated and the given ScopeResolvers.
      static org.int4.dirk.api.Injector manual​(org.int4.dirk.spi.scope.ScopeResolver... scopeResolvers)
      Creates an Injector which must be manually configured with the given ScopeResolvers.
      • Methods inherited from class java.lang.Object

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

      • Injectors

        public Injectors()
    • Method Detail

      • autoDiscovering

        public static org.int4.dirk.api.Injector autoDiscovering​(org.int4.dirk.spi.scope.ScopeResolver... scopeResolvers)
        Creates an Injector with auto discovery activated and the given ScopeResolvers.
        Parameters:
        scopeResolvers - an optional array of ScopeResolvers
        Returns:
        an Injector, never null
      • manual

        public static org.int4.dirk.api.Injector manual​(org.int4.dirk.spi.scope.ScopeResolver... scopeResolvers)
        Creates an Injector which must be manually configured with the given ScopeResolvers.
        Parameters:
        scopeResolvers - an optional array of ScopeResolvers
        Returns:
        an Injector, never null