cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: QueryCache injection problem with multiple runtimes
Date Fri, 01 Jul 2016 01:26:44 GMT

> On Jun 30, 2016, at 9:23 PM, Andrus Adamchik <andrus@objectstyle.org> wrote:
> 
> 
> Module m1 = (binder) -> binder.bind(QueryCache.class).toInstance(new EhCacheQueryCache("name1"));
> Module m2 = (binder) -> binder.bind(QueryCache.class).toInstance(new EhCacheQueryCache("name2"));

Or rather 

  new EhCacheQueryCache(new CacheManager("name2")); 

etc. Which of course is still pseudo code, as I have no idea whether you can explicitly pass
a name to CM.

Andrus



Mime
View raw message