)
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
;DataService")
> >>
> >> Step2:
> >>
> >> @Inject
> >> private UserData userData_;
> >>
> >> And that's it?? that seems almost too easy to be true!
> >>
> >>
> >> K
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
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 <
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
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
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