I tried this (where GenericDAO is an interface), public static DAO decorateDAOService(Class<DAO> serviceInterface, DAO delegate, Session session);
I think it complains because according to the warning message the serviceInterface is just a Class, not a Class<DAO> and the delegate is a DAO. so they dont match. it would be neat to be able to target a specific interface... :> 2007/2/21, Howard Lewis Ship <[EMAIL PROTECTED]>:
I think it's complaining because the T ends up being java.lang.Object, which isn't an interface. Don't know about the null, though.null ;-) On 2/21/07, Ted Steen <[EMAIL PROTECTED]> wrote: > Hi, > > I was wondering why it is not possible to decorate services with a > specific interface like this; > > public static <T extends DAO> T decorateDAOService(Class<T> > serviceInterface, T delegate, Session session) > > if I do that tapestry warns me and says; > "Decorator methods must a parameter for the service delegate (i.e., > the object the created interceptor will delegate to). Method > net.keso.ted.peng5.services.Peng5Module.decorateDAOService(Class, DAO, > Session) does not include such a parameter, and has been ignored.null" > > also, "null"? If I remember correctly all warning messages I get ends > with "null" :) > > -- > /ted > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- /ted --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
