Skip to content

Injecting factory itself #27

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

Closed
lesnik512 opened this issue Jun 8, 2024 · 2 comments · Fixed by #36
Closed

Injecting factory itself #27

lesnik512 opened this issue Jun 8, 2024 · 2 comments · Fixed by #36
Assignees
Labels
enhancement New feature or request

Comments

@lesnik512
Copy link
Member

Described here.

Can be implemented by adding property provider as in PDI. This property will return a factory object which must be called without args.

Opened question: should this factory be callable or awaitable. If callable, than async resources must be preinitialized

@lesnik512 lesnik512 added the enhancement New feature or request label Jun 8, 2024
@lesnik512 lesnik512 self-assigned this Jun 8, 2024
@vrslev
Copy link
Collaborator

vrslev commented Jun 14, 2024

Opened question: should this factory be callable or awaitable. If callable, than async resources must be preinitialized

We can add both: .provider and .sync_provider.

@vrslev
Copy link
Collaborator

vrslev commented Jun 14, 2024

Rhymes with resolve() and sync_resolve().

@lesnik512 lesnik512 linked a pull request Jun 15, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants