[aerogear-dev] Pipe Builder
Douglas Campos
qmx at qmx.me
Mon Oct 29 09:00:02 EDT 2012
On Oct 29, 2012, at 10:27 AM, Matthias Wessendorf wrote:
> One more note on the 'build()'
>
> Does it add the pipe to the pipeline? Assuming yes, why not 'buildAndAdd()'
it sounds even better if you just call it add() :)
>
> -M
>
> On Mon, Oct 29, 2012 at 1:24 PM, Bruno Oliveira <bruno at abstractj.org> 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> 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
>> 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
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>>
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> 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
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
-- qmx
More information about the aerogear-dev
mailing list