Class Injector

    • Method Detail

      • bind

        public void bind​(Application application)
        Binds current instance of the injector to the Application. After this method is called this instance of injector will be returned from subsequent calls to get() whenever the specified application object is active in the thread.
        Parameters:
        application -
      • get

        public static Injector get()
        Returns:
        Injector associated with the application instance
      • inject

        protected void inject​(Object object,
                              IFieldValueFactory factory)
        traverse fields in the class hierarchy of the object and set their value with a locator provided by the locator factory.
        Parameters:
        object -
        factory -