Package 

Class IOCsKt

    • Method Summary

      Modifier and Type Method Description
      KodeinInjector getTockInternalInjector() Internal injector - reset only for tests.
      KodeinInjector setTockInternalInjector(KodeinInjector tockInternalInjector) Internal injector - reset only for tests.
      final KodeinInjector getInjector()
      final Kodein.Module getSharedModule() IOC of shared module.
      final <T extends Any> T provide(KodeinInjector $self, Object tag) Extension function for Ioc.
      final <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
    • Method Detail

      • setTockInternalInjector

         KodeinInjector setTockInternalInjector(KodeinInjector tockInternalInjector)

        Internal injector - reset only for tests.

      • getSharedModule

         final Kodein.Module getSharedModule()

        IOC of shared module.

      • provide

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

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

      • provideOrDefault

         final <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>