I like this idea. Right now I'm at a loss to understand what all the
factory business is for, and I'm actually pretty familiar with the
codebase. I don't think our users stand a snowballs chance in hell of
sorting through the myriad of factories, factory impls, service loaders,
and service loader impls needed in order to get started with even a simple
The current Proton.java class is a step in the right direction, however
with all the other factories lying around it kind of gets lost in the
noise. It would be good if we could enforce a single entry point at the
code level, and what you're describing sounds like it would be pretty
simple/easy to explain to users. It would be nice if we could get to the
point where we have only one public entry point class inside each impl.
IMHO, that would make the API way more discoverable even with only minimal
On Thu, Aug 1, 2013 at 12:50 PM, Hiram Chirino <hi...@hiramchirino.com>wrote:
> Hi folks,
> I was just thinking perhaps we should simplify all the factory stuff
> in the proton API. Mostly get rid of it. Don't think it's really
> needed. Mainly I think we need to make Proton an interface and let
> folks assign it the desired implementation. Something like:
> Proton p = new ProtonJ();
> Proton p = new ProtonC();
> where ProtonJ and ProtonC are in the respective implementation jars.
> if folks really want to make it configurable, they can easily build an
> if statement to pick the impl that they desire.
> Hiram Chirino
> Engineering | Red Hat, Inc.
> hchir...@redhat.com | fusesource.com | redhat.com
> skype: hiramchirino | twitter: @hiramchirino
> blog: Hiram Chirino's Bit Mojo