ingvard commented on a change in pull request #7381: It is needed to set used
cache for Spring Data dynamically
URL: https://github.com/apache/ignite/pull/7381#discussion_r377088988
##########
File path:
modules/spring-data-2.0/src/main/java/org/apache/ignite/springdata20/repository/support/IgniteRepositoryFactory.java
##########
@@ -63,8 +83,11 @@ public IgniteRepositoryFactory(Ignite ignite) {
*
* @param cfg Ignite configuration.
*/
- public IgniteRepositoryFactory(IgniteConfiguration cfg) {
+ public IgniteRepositoryFactory(IgniteConfiguration cfg, ApplicationContext
ctx) {
this.ignite = Ignition.start(cfg);
+ this.ctx = ctx;
+ this.beanFactory = new
DefaultListableBeanFactory(ctx.getAutowireCapableBeanFactory());
+ this.beanExpressionContext = new
BeanExpressionContext(beanFactory,null);
Review comment:
code style, please add space.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services