I think that Tapestry IoC is trying to insist that the parameter be an
interface.  Do you have a DAO base class, or a DAO interface?

On 2/21/07, Ted Steen <[EMAIL PROTECTED]> wrote:
I guess there maybe could be a problem with the ordering of
decoration, but it is nice to not having to rely on name-magic with
@Match

2007/2/21, Ted Steen <[EMAIL PROTECTED]>:
> 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
>


--
/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]

Reply via email to