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

Update DatastoreServiceMethodInvokingFactoryBean #1535

Merged
merged 1 commit into from
Oct 1, 2021

Conversation

puneetbehl
Copy link
Contributor

Previously, the getObjectType method was returning NULL because the closure in AbstractDatastoreInitializer is not called earlier in the bean processing. So, in order to resolve
the type the AbstractBeanFactory initialize the MethodInvokingFactoryBean which results in initializing objectDefinitionSource(AnnotaionFilterInvocationDefinition) early before creating servletContext.

Fixes grails/grails-core#12057

Previously, the getObjectType method was returning NULL because the closure in AbstractDatastoreInitializer is not called earlier in the bean processing. So, in order to resolve
the type the AbstractBeanFactory initialize the MethodInvokingFactoryBean which results in initializing objectDefinitionSource(AnnotaionFilterInvocationDefinition) early before creating servletContext.

Fixes grails/grails-core#12057
@puneetbehl puneetbehl merged commit 8c05867 into master Oct 1, 2021
@puneetbehl puneetbehl deleted the methodInvokingFactoryBean branch October 1, 2021 10:04
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.

5.0.0-RC3 BUG - Controllers Render as Content-Type: application/xhtml depending on random Service Injection
1 participant