2014-07-07 14:55 GMT+02:00 Justin Edelson <jus...@justinedelson.com>:
> > > Here's a sightly more real world case... let's say you have a call like > this: > > Comment comment = resource.adaptTo(Comment.class); > > And for a Resource to be successfully adapted to a Comment, it must > satisfy two criteria: > 1) The resource type must be myco/comment > 2) It must have a property called "commentType" (OK, this part isn't > so real world). > > Right now, the caller has no way of knowing which of these critera > wasn't met. That's IMHO the crux of this request - to provide a way > for AdapterFactories to surface the failure reason back to the caller. > > Hmm, this assumes the caller can do something meaningful with it. Given your example, what could the client do? Regards Carsten > Regards, > Justin > > > > > > [1] http://markmail.org/message/lcujo4flwek3liez > > > > Cheers, > > Alex > -- Carsten Ziegeler Adobe Research Switzerland cziege...@apache.org