You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.
What is provided as the targetType to apply() when getInstance() is called manually? I have a situation where I need to use getInstance() rather than an Inject point, but the provider needs the targetType. At the moment it seems to pass the requested type.
The text was updated successfully, but these errors were encountered:
Yep, it's the requested type. I only saw the option of passing null or
the requested type itself, both not making too much sense, really.
The only way to pass the targetType for getInstance would be to change
that method's signature. Unfortunately, I think that that's pretty
hard to understand. Implementing your own dependency provider really
is something entirely different from using the injector's default API,
don't you think?
What is provided as the targetType to apply() when getInstance() is called manually? I have a situation where I need to use getInstance() rather than an Inject point, but the provider needs the targetType. At the moment it seems to pass the requested type.
Reply to this email directly or view it on GitHub: #61
There are some places where I need to pull out a fresh logger with getInstance() as the class I'm in doesn't get injected into. The only solutions I can think of are:
What is provided as the targetType to apply() when getInstance() is called manually? I have a situation where I need to use getInstance() rather than an Inject point, but the provider needs the targetType. At the moment it seems to pass the requested type.
The text was updated successfully, but these errors were encountered: