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