Re: ignite cache process entry should inject source?

2016-01-27 Thread Denis Magda
Hi Wei Jiang, In my understanding you should persuade them to a valid design ;) -- Denis On 1/26/2016 4:50 PM, 姜 为 wrote: Hi Denis, Yes , I can change the way to do this. But my business follows MVC paradigm it will be very bloated. Hope can provide an option to do

Re: ignite cache process entry should inject source?

2016-01-26 Thread Denis Magda
Hi Wei Jiang, I've taken look at your code sample and in my understanding you just shouldn't design an app in a way when a business model object (Entity) incorporates and performs a business logic (Entity.doSomething()). Ignite follows MVC paradigm thus there is no sense to inject services

Re: ignite cache process entry should inject source?

2016-01-25 Thread 姜 为
Hi Denis, I create example project https://github.com/wmz7year/ignite-example . Please see README file to run example. Wei Jiang > 在 2016年1月23日,上午2:40,Denis Magda 写道: > > Hi Wei Jiang, > > I would better

Re: ignite cache process entry should inject source?

2016-01-22 Thread Denis Magda
Hi Wei Jiang, I would better review your current approach to have better understanding on what you're trying to implement. Please share the code. If it's the same as being discussed in "about AOP development" thread that let me know, I'll take a look there. -- Denis On 1/22/2016 10:28 AM,

Re: ignite cache process entry should inject source?

2016-01-21 Thread Denis Magda
Hi Wei Jiang, You can inject @SpringResource and @SpringApplicationContextResource into Ignite Service or Ignite Compute. This feature is not supported for individual cache entries, at least because of performance reasons. @Autowired is unsupported for both Ignite services and computes. So

Re: ignite cache process entry should inject source?

2016-01-21 Thread 姜 为
Hi Denis, How about provide an option for this? Ignite cache user can chose enable or disable inject resources. Wei Jiang > 在 2016年1月22日,下午3:22,Denis Magda 写道: > > Hi Wei Jiang, > > You can inject @SpringResource and @SpringApplicationContextResource