Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support static invocation for methods and factory functions #61

Open
3 tasks
DanielSchaffer opened this issue Feb 8, 2020 · 0 comments
Open
3 tasks

Comments

@DanielSchaffer
Copy link
Contributor

DanielSchaffer commented Feb 8, 2020

Decorators cannot be used on functions, but it is possible to invoke a static method or bound instance method without specifying a this instance.

  • add overload for Injector.invoke, or additional Injector.invokeStatic method
  • update DandiGenerator to check for decorators on factory providers so that static or bound methods can be used as factory functions
  • add solution for opt-in automatic instance binding for methods using @Inject (allow configuring globally?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant