Actually I am migrating a lot of code from T4
Typically I have many Pojos used as services like this one:
public class UserData implements Serializable {
....
public UserData() {
}
}
This is an ASO session scoped in T4. In T5 in AppModule.java I have
added a binder entry:
binder.bind(UserData.class, UserDataImpl.class).withId("DataService");
UserData is expected as an interface though in T5, how do I convert
them, do have to write wrappers for all my services? what is the
efficient approach here?
I am injecting services in T5 like this, I don't know if this is correct
though?
@Inject
private RequestGlobals globals_;
@Inject
private UserData userData_;
Thanks
Peter
Robin Helgelin wrote:
On 10/8/07, Peter Stavrinides <[EMAIL PROTECTED]> wrote:
Hi All,
Sorry if this is a trivial question, I am looking for samples or a
tutorial explaining how to use Tapestry 5 IoC. I have been through the
documentation on site and there are some details I can't figure out.
It's easier to help you if you tell us the details :)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]