It seems like I'm the only one here working with non-annotated ServerResources right now, so I'd chime in and add that you actually need to override more than method for each REST method as it stands. There's get(), get(variant), post(entity), post(entity, variant), put(entity), put(entity, variant), delete(), delete(variant). Also, all these methods are allowed to throw ResourceExceptions, but annotated handlers cannot. So, it at stands, non-annotated and annotated mode are currently very different.
Also,
it seems that annotated mode is turned on by default, and that you have
to explicitly turn it off in doInit(). I'm sure some of us would prefer
this to be the other way around! Or perhaps automatic detection of some
sort?
-Tal
|
- Annotations and Restlet's future Rémi Dewitte
- Re: Annotations and Restlet's future Rémi Dewitte
- Re: Annotations and Restlet's future Erik Beeson
- Re: Annotations and Restlet's future Rob Heittman
- Re: Annotations and Restlet's future John D. Mitchell
- Re: Annotations and Restlet's future Tal Liron
- Re: Annotations and Restlet's futur... David Fogel
- Re: Annotations and Restlet's f... Rob Heittman
- Re: Annotations and Restlet... Tim Peierls
- Re: Annotations and Restlet... Tal Liron
- Re: Annotations and Restlet... Rob Heittman
- Re: Annotations and Restlet... Rémi Dewitte
- RE: Annotations and Restlet... Jerome Louvel
- Re: Annotations and Restlet... Tal Liron
- RE: Annotations and Restlet... Jerome Louvel
- Re: Annotations and Restlet... Tim Peierls
- Re: Annotations and Restlet's f... Stephan Koops
- Re: Annotations and Restlet's future Tim Peierls
- Re: Annotations and Restlet's future Lars Heuer
- Re: Annotations and Restlet's future Rob Heittman