ritesh
10/05/2019, 7:18 PMget()
overriden method in the class.
As all classes required for the DI graph are created at compile time. I was wondering when the actual creation of the object happens, when get()
is actually called. Does it gets called and object is created when it's requested through @inject
or happens at compile time and just returns when @inject
gets called.wasyl
10/05/2019, 7:27 PMProvider
classes. These are invoked when the instance is supposed to be injected somewhere, and only then objects get created. So your HandleObject.init()
will be called only when it’s injected, not before.
Anyway or happens at compile time doesn’t make much sense, as objects aren’t really created during compilationritesh
10/05/2019, 7:32 PMfield
or constructor
or any other injection types. I am stuck with a bug and just wanted to make sure.
Thanks again!