Hello

Unfortunately generics are not supported by Tapestry Services. ASM 4, to which 
Plastic will be upgraded to soon, has support for Generics 
(http://weblogs.java.net/blog/forax/archive/2011/04/17/asm-4-rc1-released) so 
hopefully it might be in the coming version.

regards
Taha

On May 10, 2012, at 7:56 PM, George Christman wrote:

> Hello, still new to the Tapestry Service, so not sure if this is possible. 
> 
> I have a class that implements an interface, both which are generics. 
> 
> //Class
> public abstract class DoSomethingClassImpl<E extends Transitory> implements
> DoSomethingClass<E> {
> 
> //Interface
> public interface DoSomethingClass<E> {
> 
> //AppModule
>    public static void bind(ServiceBinder binder) {
>        binder.bind(DoSomethingClass.class, DoSomethingClassImpl.class);
> 
> //Secheduler
>    private DoSomethingClass doSomethingClass;
> 
>    public void run() {
>         doSomethingClass.addUsers(users);
> 
> 
> 
> Without instantiating the class like so,
> 
> private DoSomethingClass<User> user = new DoSomethingClass<User>() {
> 
> }
> 
> How do I pass my User entity into my DoSomethingClass as a generic. I'd like
> to continue using this as a tapestry service if possible.
> 
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Using-generics-in-tapestry-service-tp5700399.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