[infinispan-dev] Deprecated AdvancedCache.with() method?

Galder Zamarreño galder at redhat.com
Mon Oct 24 05:33:09 EDT 2011


On Oct 21, 2011, at 12:53 PM, Sanne Grinovero wrote:

> Sorry for missing this thread; until yesterday that I needed to fix
> something in this area my understanding of the importance of the
> with() method was limited so I might have skipped this consciously.
> 
> When deployed as an AS7 Module the with() method is very important to
> be able to load Caches from the application scope; this is used by
> Query for example to load custom KeyTransformers, a component needed
> to create application-scoped types as return objects from the queries.
> Besides Query users, there are other cool projects which depend on
> this functionality such as Alesj's new project.
> 
> I'm aware of the failing test, and after my fixes for ISPN-1477 &
> ISPN-1478 that specific test still fails but the with() works well
> enough for my use cases. In fact I didn't understand what that test is
> supposed to do so unless you want to look into it I think it could be
> removed;

The test verifies that with() works as expected. In the case of the test, it checks that when the cache is associated with a CL that does not see the class, it fails to find the class. Once you hook the right classloader with AC.with() call, it works.

> still the AdvancedCache.with() should not be removed before a
> valid alternative is introduced, and we should make sure it works
> correctly.
> 
> Sanne
> 
> On 18 October 2011 14:30, Galder Zamarreño <galder at redhat.com> wrote:
>> Hi,
>> 
>> I assume that once https://issues.jboss.org/browse/ISPN-1413 is in place, AdvancedCache.with() method will be deprecated right?
>> 
>> Remember that ISPN-1413 will result in a classloader being maintained per CacheManager.
>> 
>> The reason I ask this is cos http://goo.gl/4bfFb is broken and I'm planning to disable it (or remove it), unless we plan to support that with() call.
>> 
>> Cheers,
>> --
>> Galder Zamarreño
>> Sr. Software Engineer
>> Infinispan, JBoss Cache
>> 
>> 
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>> 
> 
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

--
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache




More information about the infinispan-dev mailing list