Re: Antwort: Re: Tapestry 5 IoC container

2007-10-09 Thread Peter Stavrinides
) will also work :) Kristian Marinkovic <[EMAIL PROTECTED]> 08.10.2007 14:29 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema Antwort: Re: Tapestry 5 IoC container in T5 you don't have to define ASOs as in T4 if you want to define a

Re: Antwort: Re: Tapestry 5 IoC container

2007-10-09 Thread lasitha
;DataService") > >> > >> Step2: > >> > >> @Inject > >> private UserData userData_; > >> > >> And that's it?? that seems almost too easy to be true! > >> > >> > >> K

Re: Antwort: Re: Tapestry 5 IoC container

2007-10-08 Thread Peter Stavrinides
er.bind(UserData.class).withId("DataService") will also work :) Kristian Marinkovic <[EMAIL PROTECTED]> 08.10.2007 14:29 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema Antwort: Re: Tapestry 5 IoC container in T5 you don't ha

Re: Antwort: Re: Tapestry 5 IoC container

2007-10-08 Thread lasitha
t too easy to be true! > > > Kristian Marinkovic wrote: > > and you can also have services withouth an interface > > > > binder.bind(UserData.class).withId("DataService") > > will also work :) > > > > > > > > > > Kristian Marinkovic <

Re: Antwort: Re: Tapestry 5 IoC container

2007-10-08 Thread Peter Stavrinides
o have services withouth an interface binder.bind(UserData.class).withId("DataService") will also work :) Kristian Marinkovic <[EMAIL PROTECTED]> 08.10.2007 14:29 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema Antwort: Re: Tap

Antwort: Re: Tapestry 5 IoC container

2007-10-08 Thread Kristian Marinkovic
and you can also have services withouth an interface binder.bind(UserData.class).withId("DataService") will also work :) Kristian Marinkovic <[EMAIL PROTECTED]> 08.10.2007 14:29 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema A

Antwort: Re: Tapestry 5 IoC container

2007-10-08 Thread Kristian Marinkovic
in T5 you don't have to define ASOs as in T4 if you want to define and use a ASO you just have to use the @ApplicationState annotation: @ApplicationState private UserData userData; the first access will force the object instantiation with a no-arg constructor. default scope of ASOs (and the onl