Closed mflint closed 9 years ago
The JSObjectFactory can be used in-lieu of the JSObjectionInjector. It is a proxy to the JSObjectionInjector that you can use to build objects from the injector context.
Awesome, thank-you @dewind. That could be the magic I was searching for!
Hello team,
I sometimes need to get the
JSObjectionInjector
which was used to create an object, after the call to-awakeFromObjection
has been performed, and would like to contribute a pull request to make this possible.I can see two options:
-awakeFromObjection:(JSObjectionInjector *)injector
function, so the injector can pass itself to the created objectJSObjectionInjector
to a property, using Objection itself.Would the maintainers have any preference? (Or a third, better way?)
Thanks for any advice you may have!
Matthew
Option 1
Option 2