<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">+1</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div> <div id="bloop_sign_1389624728822864128" class="bloop_sign"><span style="font-family:helvetica,arial;font-size:13px"></span>--&nbsp;<br>Daniel Passos<br></div> <br><p style="color:#A0A0A8;">On January 13, 2014 at 12:23:53 PM, Tadeas Kriz (<a href="mailto://tkriz@redhat.com">tkriz@redhat.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>



<title></title>



It might not be named “Configuration”. It could be a “Builder”
instead, how about that?
<div><br>
<div apple-content-edited="true">
<div>—</div>
<div>Tadeas Kriz</div>
<div><a href="mailto:tkriz@redhat.com">tkriz@redhat.com</a></div>
</div>
<br>
<div>
<div>On 13 Jan 2014, at 13:05, Daniel Passos &lt;<a href="mailto:daniel@passos.me">daniel@passos.me</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div id="bloop_customfont" style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;">I
don’t know if I like the configuration know how create store, but I
really like the registration approach&nbsp;instead of ugly
factory</div>
<div id="bloop_customfont" style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;">
<br></div>
<div id="bloop_sign_1389613978441355008" class="bloop_sign">
--&nbsp;<br>
Daniel Passos<br></div>
<br>
<p style="color: rgb(160, 160, 168);">On January 9, 2014 at 9:11:41
AM, Tadeas Kriz (<a href="mailto://tkriz@redhat.com">tkriz@redhat.com</a>) wrote:</p>
<blockquote type="cite" class="clean_bq">
<div><span>Hey,</span></div>
<div><span><br></span></div>
<div><span>It’s me again with more changes to the DataManager API.
I’ve tried many different approaches and this one is basically the
only one I got to work as intended (these are only interfaces, no
real implementation, but that’s not a problem as it won’t make it
much difficult to change current implementations to match those
interfaces). Basically, it’s not the best and I had better APIs,
but they unfortunately weren’t possible because of restrictions in
Java.</span></div>
<div><span><br></span></div>
<div><span>You can find the draft here:&nbsp;<a href="https://gist.github.com/TadeasKriz/e0f5583e2a24c32dc253">https://gist.github.com/TadeasKriz/e0f5583e2a24c32dc253</a></span></div>
<div><span><br></span></div>
<div><span>What can I say about this API is, that in this approach
the user shouldn’t need to cast the Store&lt;T&gt; (which is real
pain in current API) unless he really needs to (like some methods
that’ll be available only for the store he wants). In other cases,
when the cast is not needed, users will be able to just work with
the Store&lt;T&gt; and change the underlying store as they like. So
let’s say they’ll be working with MemoryStore in development,
because it’s easier to debug. Then the release will be closing in,
they’ll just switch to SQLStore very easily.</span></div>
<div><span><br></span></div>
<div><span>So, what do you think guys?</span></div>
<span><br></span>
<div apple-content-edited="true">
<div><span>—</span></div>
<div><span>Tadeas Kriz</span></div>
<div><span><a href="mailto:tkriz@redhat.com">tkriz@redhat.com</a></span></div>
</div>
<span><br>
_______________________________________________&nbsp;<br>
aerogear-dev mailing list&nbsp;<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>&nbsp;<br>

<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></span></blockquote>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>

<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></div>
</blockquote>
</div>
<br></div>


_______________________________________________
<br>aerogear-dev mailing list
<br>aerogear-dev@lists.jboss.org
<br>https://lists.jboss.org/mailman/listinfo/aerogear-dev</div></div></span></blockquote></body></html>