-
Notifications
You must be signed in to change notification settings - Fork 195
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
7.0.7 - DatastoreServiceMethodInvokingFactoryBean - FactoryBean threw exception from getObjectType #1368
Closed
4 tasks done
Comments
zyro23
added a commit
to zyro23/grails-data-mapping-1368
that referenced
this issue
Aug 17, 2020
zyro23
added a commit
to zyro23/grails-data-mapping
that referenced
this issue
Aug 18, 2020
… classloader where appropriate - DatastoreServiceMethodInvokingFactoryBean.getObjectType returns null if not initialized (i.e. arguments is null, getArguments() returns Object[]). that allows AbstractAutowireCapableBeanFactory to initialize DatastoreServiceMethodInvokingFactoryBean if necessary - AbstractDatastoreInitializer and SoftServiceLoader use the context classloader to load data service classes. this way, autowiring data services by type works reliably with spring boot devtools restart (RestartClassLoader)
zyro23
added a commit
to zyro23/grails-data-mapping
that referenced
this issue
Aug 18, 2020
puneetbehl
added a commit
that referenced
this issue
Aug 18, 2020
#1368 - respect FactoryBean.getObjectType contract, use context…
zyro23
added a commit
to zyro23/gorm-hibernate5
that referenced
this issue
Aug 18, 2020
…ped data services works targeting Configuration beans as well as BeanPostProcessor beans
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Task List
Steps to Reproduce
Expected Behaviour
injection should work, sample app should start
Actual Behaviour
depending on how/where a data service is autowired, spring may inspect the data service bean before it is initialized (e.g.
@Autowired
into aBeanPostProcessor
, see sample app).in this case,
DatastoreServiceMethodInvokingFactoryBean.getObjectType()
throws an exception which violates theFactoryBean.getObjectType
contract:Environment Information
Example Application
sample app will be referenced asap
The text was updated successfully, but these errors were encountered: