Re: Using Tapestry-ioc Separately

2008-02-06 Thread Howard Lewis Ship
The premature optimization was thinking that resolving dependencies once, and storing them in instance variables, was going to be appreciably faster than using static methods. Actually, the real savings was in terms of typing those same parameters and annotations ... and that's gone away with the

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Davor Hrg
No need to concern yourself too much about it... use static or instace as you see fit. speed difference is neglible... Davor Hrg On Feb 6, 2008 9:40 PM, Hilco Wijbenga <[EMAIL PROTECTED]> wrote: > On Feb 6, 2008 11:32 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > except for bind() which i

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Hilco Wijbenga
On Feb 6, 2008 11:32 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > except for bind() which is static. Bummer! :-) > Just part of the strategy for deferring, or avoiding, instantiation of > the module class. > > In retrospect, premature optimization. If I were starting that from > scratch, al

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Howard Lewis Ship
except for bind() which is static. Just part of the strategy for deferring, or avoiding, instantiation of the module class. In retrospect, premature optimization. If I were starting that from scratch, all the methods on a module class would be static. What you see is that the module may be insta

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Hilco Wijbenga
On Feb 6, 2008 11:08 AM, Davor Hrg <[EMAIL PROTECTED]> wrote: > module methods can be both static and instance methods, > you choose ... > > http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html Great! :-) That's very nice. I think the examples should use instance methods then, shouldn't t

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Davor Hrg
module methods can be both static and instance methods, you choose ... http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html Davor Hrg On 2/6/08, Hilco Wijbenga <[EMAIL PROTECTED]> wrote: > On Feb 5, 2008 11:19 PM, Davor Hrg <[EMAIL PROTECTED]> wrote: > > http://wiki.apache.org/tapestry

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Hilco Wijbenga
On Feb 5, 2008 11:19 PM, Davor Hrg <[EMAIL PROTECTED]> wrote: > http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly > http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate Oh, nice! I had not noticed these. Is there a reason that the Module needs to have a *static* bind(ServiceBinder)?

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Christian Edward Gruber
Kinda liking picocontainer, but tapestry-ioc is becoming my favorite for non-embedded circumstances. christian. On 6-Feb-08, at 13:26 , Hilco Wijbenga wrote: On Feb 5, 2008 2:39 PM, Jan Vissers <[EMAIL PROTECTED]> wrote: Indeed T5's IoC can be used without T5 core, although IMHO you're bet

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Hilco Wijbenga
On Feb 5, 2008 2:39 PM, Jan Vissers <[EMAIL PROTECTED]> wrote: > Indeed T5's IoC can be used without T5 core, although IMHO you're better > of using Google Guice. If you're already familiar with T5 IoC, using Guice > isn't that hard. Yes, I noticed that T5 IoC and Guice are *very* similar. But Gui

Re: Using Tapestry-ioc Separately

2008-02-05 Thread Davor Hrg
http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate Davor Hrg On Feb 5, 2008 11:00 PM, Hilco Wijbenga <[EMAIL PROTECTED]> wrote: > I was wondering about using T5's IOC separately, i.e. in a non-T5 app > (in fact, not even a web app).

Re: Using Tapestry-ioc Separately

2008-02-05 Thread Jan Vissers
Indeed T5's IoC can be used without T5 core, although IMHO you're better of using Google Guice. If you're already familiar with T5 IoC, using Guice isn't that hard. Just my 0.02ct -J. > It's purposely separated out for use in non-web applications, for that > exact intention. > > On Feb 5, 2008

Re: Using Tapestry-ioc Separately

2008-02-05 Thread Howard Lewis Ship
It's purposely separated out for use in non-web applications, for that exact intention. On Feb 5, 2008 2:00 PM, Hilco Wijbenga <[EMAIL PROTECTED]> wrote: > I was wondering about using T5's IOC separately, i.e. in a non-T5 app > (in fact, not even a web app). The tapestry-ioc JAR is available > sep

Using Tapestry-ioc Separately

2008-02-05 Thread Hilco Wijbenga
I was wondering about using T5's IOC separately, i.e. in a non-T5 app (in fact, not even a web app). The tapestry-ioc JAR is available separately, it's quite small, and has very few dependencies. Do people think this is a good idea? Or is tapestry-ioc too oriented towards a web app? Should I use S