Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

[#608] Fixed reuse issue with WrappingInjectorProvider #616

Merged
merged 1 commit into from
Jan 16, 2018

Conversation

cdietrich
Copy link
Member

[#608] make sure that WrappingInjectorProvider records changes to the global registry even if the delegate itself is a IRegistryConfigurator and its injector is already created so that createInjector does not do anything that could be recorded

Signed-off-by: Christian Dietrich [email protected]

… global registry even if the delegate itself is a IRegistryConfigurator and its injector is already created so that createInjector does not do anything that could be recorded

Signed-off-by: Christian Dietrich <[email protected]>
@cdietrich cdietrich requested a review from szarnekow January 15, 2018 16:03
@cdietrich cdietrich added this to the Release_2.14 milestone Jan 15, 2018
@cdietrich cdietrich merged commit b43b008 into master Jan 16, 2018
@cdietrich cdietrich deleted the cd_issue_608 branch January 16, 2018 06:12
@cdietrich cdietrich mentioned this pull request Aug 2, 2021
@@ -45,8 +45,14 @@ public WrappingInjectorProvider(IInjectorProvider delegate) {
this.delegate = delegate;
stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
this.injector = createInjector();
if (delegate instanceof IRegistryConfigurator) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it correct to call this AFTER createInjector?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope inverting also seems to break other stuff

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants