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
If you register object with prototype strategy and then call ctx.initialize() than ctx creates not-needed instance of registered object and injects it.
But if you later get new instance manually — it w'ont be injected.
ctx.register("someOnject",SomeObject).strategy(di.strategy.proto);ctx.initialize();// Instance of SomeObject created and injected and just lost.varmyObject=ctx.get('someObject');// new instance of SomeObject created but not injected.
Seems like there are two problems:
For proto strategy no instances should be created during initialization.
New instances should be injected when getting manually after initialization.
The text was updated successfully, but these errors were encountered:
If you register object with prototype strategy and then call ctx.initialize() than ctx creates not-needed instance of registered object and injects it.
But if you later get new instance manually — it w'ont be injected.
Seems like there are two problems:
The text was updated successfully, but these errors were encountered: