<p dir="ltr">AdvancedCache is the API we use the most. I&#39;d rather say I don&#39;t care for Cache: all I use it for us to get an AdvancedCache. </p>
<p dir="ltr">On 13 May 2013 10:12, &quot;Manik Surtani&quot; &lt;<a href="mailto:msurtani@redhat.com">msurtani@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; On 10 May 2013, at 12:32, Dan Berindei &lt;<a href="mailto:dan.berindei@gmail.com">dan.berindei@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Fri, May 10, 2013 at 1:31 PM, Manik Surtani &lt;<a href="mailto:msurtani@redhat.com">msurtani@redhat.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 10 May 2013, at 11:14, Dan Berindei &lt;<a href="mailto:dan.berindei@gmail.com">dan.berindei@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Fri, May 10, 2013 at 11:53 AM, Manik Surtani &lt;<a href="mailto:msurtani@redhat.com">msurtani@redhat.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; On 9 May 2013, at 20:56, Dan Berindei &lt;<a href="mailto:dan.berindei@gmail.com">dan.berindei@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; Couldn&#39;t you change CacheLoaderManager to call ComponentRegistry.wireDependencies(cacheStore)? <br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; That way, each cache store could have a separate @Inject method, and it could depend on any cache-scoped or global-scoped component. It may require an infinispan-module.properties file in each cache store module, but it then it could be used for any other component.<br>

&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; -1.  That would expose the injection fwk to custom cache store impls.  Unless you&#39;re assuming that custom impls would&#39;t use the TimeService (since it isn&#39;t public API), and just call System.nanoTime() directly?<br>

&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Well, that was my point: to allow custom cache stores to use the injection framework. <br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; The custom cache stores can use the component registry right now, because they have access to the cache. And they can also use injection for their own custom components, by writing a org.infinispan.factories.components.ModuleMetadataFileFinder. Not allowing them to use injection in the cache store itself seems like an arbitrary limitation.<br>

&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; It&#39;s not arbitrary at all.  It makes such internals an SPI with rules around compatibility.  I&#39;d rather keep these internal and reserve the right to change/modify them without impact to extension points.<br>

&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Isn&#39;t it already an SPI if the component registry can be accessed via AdvancedCache and we allow any external module to inject its own components?<br>
&gt;<br>
&gt;<br>
&gt; It is.  But at least AdvancedCache isn&#39;t a critical, core interface that every Infinispan user will at some point interact with.<br>
&gt;<br>
&gt; --<br>
&gt; Manik Surtani<br>
&gt; <a href="mailto:manik@jboss.org">manik@jboss.org</a><br>
&gt; <a href="http://twitter.com/maniksurtani">twitter.com/maniksurtani</a><br>
&gt;<br>
&gt; Platform Architect, JBoss Data Grid<br>
&gt; <a href="http://red.ht/data-grid">http://red.ht/data-grid</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; infinispan-dev mailing list<br>
&gt; <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
</p>