From what I see on JRA [-1] this looks somewhat similar to what we
have been doing at so(m)mer, where we created an @rdf annotation to
annotate classes, fields and getters and setters too.
The idea of this mapping came from OWL [0] which is a description
logic [1] vocabulary for RDF. Description logic is essentially
Declarative Object Oriented notation.
RDF uses Resources to denote everything. Essentially it takes REST to
the limit.
So if one is going to map REST to java then those would clearly be
the places to look.
Looking at JRA it seems a little ad hoc. It does not seem to me to be
starting from the most solid foundations.
Henry
[-1] http://jra.codehaus.org/
[0] http://www.w3.org/2001/sw/WebOnt/
[1] http://en.wikipedia.org/wiki/Description_logics
On 14 Feb 2007, at 11:25, Jerome Louvel wrote:
Thanks Dave. I also think it is good for REST and for Java.
I just want to make it very clear that this JSR will not
standardize the
Restlet API or a similar API. We still plan to submit the Restlet
API to the
JCP in 2008. It's purpose is to standardize a higher-level API as a
set of
Java annotations. In my mind, that should address the mapping
between the
resource-oriented paradigm (as supported by the Restlet API) and the
object-oriented paradigm (as expressed by Java domain classes).
Right now, we have the Resource class that is the final controller
in the
Restlet processing chain. This class doesn't constraint in any way
how the
domain objects should look like or be provided: EJB, persistent
POJOs, db4o,
Hibernate, JPA, JDO, direct JDBC/SQL calls, etc. This set of
annotations
will facilitate the mapping between domain POJOs, Restlet Resources
and URI
routing.
Best regards,
Jerome
-----Message d'origine-----
De : Dave Pawson [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 14 février 2007 10:50
À : [email protected]
Objet : Re: New JSR to define a high-level REST API for Java
On 14/02/07, Jerome Louvel <[EMAIL PROTECTED]> wrote:
I'm happy to announce that the Restlet project will
contribute to the
elaboration of a high-level REST API for Java, as a set of Java 5
annotations.
This effort, led by Sun Microsystems, will be complimentary
to the Restlet
API. The Noelios Restlet Engine, will support these new
annotations in a
future version.
Nice one Jerome!
good to see your work accepted as a part of Java.
Good for REST too I think.
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk