Skip to content

Add methodhandle support to InternalFactoryToScopedProviderAdapter #1884

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

Merged
merged 1 commit into from
Mar 24, 2025

Conversation

copybara-service[bot]
Copy link

Add methodhandle support to InternalFactoryToScopedProviderAdapter

We can take advantage of the fact that setDependency is a no-op when disableCircularProxies is set, but otherwise this is a pretty straightforward translation.

For Singleton scoped factories, we can follow the pattern of Initializable and create a 'patchable' callsite which should enable constant folding of resolved singletons.

We can take advantage of the fact that `setDependency` is a no-op when `disableCircularProxies` is set, but otherwise this is a pretty straightforward translation.

For Singleton scoped factories, we can follow the pattern of `Initializable` and create a 'patchable' callsite which should enable constant folding of resolved singletons.

PiperOrigin-RevId: 739912256
@copybara-service copybara-service bot merged commit a710477 into master Mar 24, 2025
1 check passed
@copybara-service copybara-service bot deleted the test_739296484 branch March 24, 2025 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant