Re: Library binder and IDE helper

2012-08-16 Thread trsvax
OK I got a sonatype account and the snapshot module is at https://oss.sonatype.org/content/repositories/snapshots/ com.trsvax tapestry-librarybinder 5.3.4-SNAPSHOT I'll make a release version shortly Barry -- View this message in context: http://tapestry.1

Re: Library binder and IDE helper

2012-08-15 Thread trsvax
I also reduces clutter in your page/component classes. I was already using this for DAOs because I have one DAO per entity type. Some pages would have 4 or 5 @Injects for DOAs. Now they have one. Secondly it defines the public API. If you use T5 you do not have access to private services. Lastly

Re: Library binder and IDE helper

2012-08-15 Thread Robert Zeigler
The point is that you may not know it. You inject T5, and then use IDE code completion and inline help to determine what you need. Robert On Aug 15, 2012, at 8/158:29 AM , Alex Kotchnev wrote: > I don't quite get it. If , as a user, I know that I need a > ValueEncoderFactory, why is it helpful

Re: Library binder and IDE helper

2012-08-15 Thread Alex Kotchnev
I don't quite get it. If , as a user, I know that I need a ValueEncoderFactory, why is it helpful to inject T5, and call valueEncoderFactory() instead of declaring a field of type ValueEncoderFactory and marking it up w/ @Inject ? Cheers, Alex K On Tue, Aug 14, 2012 at 7:30 PM, Lenny Primak wrot

Re: Library binder and IDE helper

2012-08-14 Thread Lenny Primak
I don't want to duplicate your efforts. I would love it if the library was in maven central and just use it. It would also be great for this to be part of the core tapestry, I think it would simplify the usage greatly, especially for beginners. On Aug 14, 2012, at 7:28 PM, trsvax wrote: > I

Re: Library binder and IDE helper

2012-08-14 Thread trsvax
I checked in the last of the T5 public services. Lenny if you want to use some of the code feel free. I'll add the Apache 2 license header in the morning. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Library-binder-and-IDE-helper-tp5715397p5715424.html Sent from the T

Re: Library binder and IDE helper

2012-08-14 Thread trsvax
I think I can generate this file from the Javadocs but I have not tried that. If so the moving target does not really matter. Also since the library will bind all the services interfaces from the methods in the Interface file it really becomes the definition for the Library/Module API so there is

Re: Library binder and IDE helper

2012-08-14 Thread Lenny Primak
Its in the library -Original message- From: Thiago H de Paula Figueiredo To: Tapestry users Sent: Tue, Aug 14, 2012 20:15:49 GMT+00:00 Subject: Re: Library binder and IDE helper On Tue, 14 Aug 2012 16:17:43 -0300, Robert Zeigler wrote: This is what the T5.java service is doing

Re: Library binder and IDE helper

2012-08-14 Thread Thiago H de Paula Figueiredo
On Tue, 14 Aug 2012 16:17:43 -0300, Robert Zeigler wrote: This is what the T5.java service is doing already. It's a single injectable service that has methods to gain access to many (all?) the public services. I didn't know about that. Does it exist since which Tapestry version? Or is

Re: Library binder and IDE helper

2012-08-14 Thread Robert Zeigler
On Aug 14, 2012, at 8/142:07 PM , Thiago H de Paula Figueiredo wrote: > On Tue, 14 Aug 2012 15:19:04 -0300, Lenny Primak > wrote: > >> Seems like he has a T5 interface that as all kinds of getters. Seems like >> what I am going for or am I confused? > > I think it can be used for speeding t

Re: Library binder and IDE helper

2012-08-14 Thread Thiago H de Paula Figueiredo
On Tue, 14 Aug 2012 15:19:04 -0300, Lenny Primak wrote: Seems like he has a T5 interface that as all kinds of getters. Seems like what I am going for or am I confused? I think it can be used for speeding the implementation of what you want. The other part would be to define an interface

Re: Library binder and IDE helper

2012-08-14 Thread Lenny Primak
Seems like he has a T5 interface that as all kinds of getters. Seems like what I am going for or am I confused? One thing that I would like is to merge some of this work. Barry's (trsvax) stuff isn't on Maven Central, which makes things a little more difficult to work with. On Aug 14, 2012, at

Re: Library binder and IDE helper

2012-08-14 Thread Thiago H de Paula Figueiredo
On Tue, 14 Aug 2012 15:15:28 -0300, Thiago H de Paula Figueiredo wrote: On Tue, 14 Aug 2012 14:45:04 -0300, Lenny Primak wrote: So seems like you are running with this faster than I am. Should I close my issue them? I thought what trsvax did is different from what you wanted, Lenny.

Re: Library binder and IDE helper

2012-08-14 Thread Thiago H de Paula Figueiredo
On Tue, 14 Aug 2012 14:45:04 -0300, Lenny Primak wrote: So seems like you are running with this faster than I am. Should I close my issue them? I thought what trsvax did is different from what you wanted, Lenny. -- Thiago H. de Paula Figueiredo ---

Re: Library binder and IDE helper

2012-08-14 Thread Lenny Primak
As Thiago said before this moving target isn't moving very fast :) On Aug 14, 2012, at 12:08 PM, Howard Lewis Ship wrote: > Interesting, though (of course), the available interfaces are a moving > target. You should honor marker annotations on the interface methods > to help identify which se

Re: Library binder and IDE helper

2012-08-14 Thread Lenny Primak
So seems like you are running with this faster than I am. Should I close my issue them? On Aug 14, 2012, at 11:01 AM, trsvax wrote: > https://github.com/trsvax/tapestry-librarybinder > > There was a discussion about IDE help on another thread. > I had thought about this before so while I was

Re: Library binder and IDE helper

2012-08-14 Thread Howard Lewis Ship
Interesting, though (of course), the available interfaces are a moving target. You should honor marker annotations on the interface methods to help identify which service it injected for each method. On Tue, Aug 14, 2012 at 9:01 AM, trsvax wrote: > https://github.com/trsvax/tapestry-librarybinde