[aerogear-dev] Pipe Builder

Daniel Passos daniel at passos.me
Mon Oct 29 17:15:29 EDT 2012


What do you thing about builder an internal class of pipeline? => https://gist.github.com/3976545


-- 
Daniel Passos


On Monday, October 29, 2012 at 7:05 PM, Daniel Passos wrote:

> Bruno,
> 
> The compiler is already ensuring the name and the class will be defined before the build to be called. That is the only thing that is important to me because both are mandatory. 
> 
> -- 
> Daniel Passos
> 
> 
> On Monday, October 29, 2012 at 10:24 AM, Bruno Oliveira wrote:
> 
> > Agreed with matzew and some suggestions. 
> > 
> > Try to enforce the chain if the **order** of the method call matters to you, returning 'this' user could call:
> > 
> > Pipe<Bar> barPipe = pipeline.newPipe()
> > .withName("bar")
> > .useClass(Bar.class)
> > .withType(REST)
> > .withEnpoint("my-crazy-endpoing")
> > .build();
> > 
> > 
> > Or
> > 
> > Pipe<Bar> barPipe = pipeline.newPipe()
> > .useClass(Bar.class)
> > .withEnpoint("my-crazy-endpoing")
> > .withName("bar")
> > .withType(REST)
> > .build();
> > 
> > 
> > -- 
> > "The measure of a man is what he does with power" - Plato
> > -
> > @abstractj
> > -
> > Volenti Nihil Difficile
> > 
> > 
> > 
> > On Monday, October 29, 2012 at 10:18 AM, Matthias Wessendorf wrote:
> > 
> > > Look great!
> > > 
> > > minor things:
> > > 
> > > * newPipe() ==> pipe();
> > > * withFoo(arg) ==> foo(arg);
> > > 
> > > 
> > > -M
> > > 
> > > On Mon, Oct 29, 2012 at 1:16 PM, Daniel Passos <daniel at passos.me (mailto:daniel at passos.me)> wrote:
> > > > Hey Guys,
> > > > 
> > > > What do you think about draft of Pipe Builder? =>
> > > > https://gist.github.com/3973193
> > > > 
> > > > --
> > > > Daniel Passos
> > > > 
> > > > 
> > > > _______________________________________________
> > > > aerogear-dev mailing list
> > > > aerogear-dev at lists.jboss.org (mailto:aerogear-dev at lists.jboss.org)
> > > > https://lists.jboss.org/mailman/listinfo/aerogear-dev
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > -- 
> > > Matthias Wessendorf
> > > 
> > > blog: http://matthiaswessendorf.wordpress.com/
> > > sessions: http://www.slideshare.net/mwessendorf
> > > twitter: http://twitter.com/mwessendorf
> > > _______________________________________________
> > > aerogear-dev mailing list
> > > aerogear-dev at lists.jboss.org (mailto:aerogear-dev at lists.jboss.org)
> > > https://lists.jboss.org/mailman/listinfo/aerogear-dev
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > aerogear-dev mailing list
> > aerogear-dev at lists.jboss.org (mailto:aerogear-dev at lists.jboss.org)
> > https://lists.jboss.org/mailman/listinfo/aerogear-dev
> 





More information about the aerogear-dev mailing list