Class Injector

  • All Implemented Interfaces:

    @Component() 
    public final class Injector
    
                        

    Spring-inject entities if they have an @Configurable annotation. Can be put on any entity without efficiency concerns.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Injector(ApplicationContext applicationContext)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit inject(Object target) Inject the given object if it is non null and annotated with @Configurable.
      • Methods inherited from class java.lang.Object

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

      • Injector

        Injector(ApplicationContext applicationContext)
    • Method Detail

      • inject

         final Unit inject(Object target)

        Inject the given object if it is non null and annotated with @Configurable.

        Parameters:
        target - the object to inject.