You would probably want to do it like this:

AppModule.java
---------------
public DoSomethingClass<User> buildUserDoSomethingClass() {
   return new DoSomethingClassImpl<User>();
}

public DoSomethingClass<Date> buildDateDoSomethingClass() {
   return new DoSomethingClassImpl<Date>();
}

Page.java
---------
@Inject @Named("dateDoSomethingClass")
private DoSomethingClass<Date> dateDoSomethingClass;

@Inject @Named("userDoSomethingClass")
private DoSomethingClass<User> userDoSomethingClass;

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Using-generics-in-tapestry-service-tp5700399p5700455.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to