Class IOCsKt

  • All Implemented Interfaces:

    
    public final class IOCsKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      KodeinInjector getTockInternalInjector() Internal injector - reset only for tests.
      void setTockInternalInjector(KodeinInjector tockInternalInjector) Internal injector - reset only for tests.
      final KodeinInjector getInjector()
      final Kodein.Module getSharedModule() IOC of shared module.
      final static <T extends Any> T provide(KodeinInjector $self, Object tag) Extension function for Ioc.
      final static <T extends Any> T provideOrDefault(KodeinInjector $self, Object tag, Function0<T> defaultValueProvider) Extension function for Ioc.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • setTockInternalInjector

         void setTockInternalInjector(KodeinInjector tockInternalInjector)

        Internal injector - reset only for tests.

      • getSharedModule

         final Kodein.Module getSharedModule()

        IOC of shared module.

      • provide

         final static <T extends Any> T provide(KodeinInjector $self, Object tag)

        Extension function for Ioc. Pattern: <code>val core: NlpCore get() = injector.provide()</code>

      • provideOrDefault

         final static <T extends Any> T provideOrDefault(KodeinInjector $self, Object tag, Function0<T> defaultValueProvider)

        Extension function for Ioc. Pattern: <code>val core: NlpCore get() = injector.provideOrDefault() { ... }</code>