May be it would be possible to add some annotation to build methods to provide details on implementation class? This isn't brilliant, but may work for some cases when you have to use build methods.
On Tue, Jul 27, 2010 at 10:33, Igor Drobiazko <[email protected]>wrote: > I'm on the verge of committing the fix. I works pretty well but there is a > limitation. Copying annotations from implementation to proxy only works for > services bound with ServiceBinder inside the bind method. It will not work > for services that are created inside build methods. > > For build methods there is no way to determine the implementation class at > proxy creation time. Proxy uses an ObjectCreator which invokes build > methods > to create the delegates on demand. At this time you know the implementation > class but it's just too late. Proxy already have been fabricated. > > I guess we can live with that limitation. We just have to document it very > good. > > On Wed, Jul 21, 2010 at 8:31 PM, Igor Drobiazko <[email protected] > >wrote: > > > > > > > On Wed, Jul 21, 2010 at 7:51 PM, Thiago H. de Paula Figueiredo < > > [email protected]> wrote: > > > >> That's exactly the only thing in Tapestry-IoC that isn't awesome yet > IMHO. > >> > > > > Yep, agreed. > > > >> > >> Thank you very much for fixing this issue! I even researched a little > bit, > >> but I haven't had the time to implement it. > >> > >> > > It is not fixed but hopefully this weekend. > > > > -- > > Best regards, > > > > Igor Drobiazko > > http://tapestry5.de > > > > > > -- > Best regards, > > Igor Drobiazko > http://tapestry5.de > -- Dmitry Gusev AnjLab Team http://anjlab.com
