users@jersey.java.net

Re: Guice provider

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 19 Nov 2007 14:12:22 +0100

Salut Christian,

I very much enjoyed and appreciated your blogs, such efforts are very
helpful in "spreading the word" :-) Jakub and I wrote some comments.

You are correct about the Google rankings :-( Jersey is about 6 months
old so i guess from an open source perspective it is still very young. I
don't know of anyway solid way to boost the rankings other than plain
old hard work building up an open and friendly community with:

- a release early and often model;

- easy access to high quality stable releases with good Java
   documentation and examples;

- a good API/SPI that is flexible for integration needs but does not get
   in the way;

- be very responsive to user/developer requirements and questions; and

- encourage and welcome contributions from users/developers.


Two comments follow related to your blogs that i thought might be useful
for users on this email list.


On scripting languages: One task we have slated is to ensure that Jersey
works well with other JVM-based languages that have good runtime
integration with Java SE 5 features. I am tracking Scala (a object and
functional hybrid language) and Groovy. There is already an example in
the Jersey distribution using Scala and i would like to include one for
Groovy (any volunteers?). Ideas for better integration are:

- A language specific integration for access to common injectable
   classes without having to explicitly inject, i believe this may be
   possible with Groovy by using meta-programming.

- Language specific HTTP method processors that support the returning of
   partial functions and/or closures for better handling of precondition
   and variant selection support, and potentially comet style
   interactions (Scala's actors might prove useful here).


On template engines: as i said in a comment to one of your blog entries
we would like to support a MVC architecture where by an HTTP method can
return an instance of a model that gets processed by a template
associated with the resource class. For example, given the following method:

   @HttpMethod("GET")
   @UriTemplate("hello/")
   @ProduceMime("text/html")
   public String ideInit() {
     return "hello";
   }

a template associated with the path "hello", the fully qualified name of
the resource class, that produces "text/html" will be found and the
String instance "hello" will be passed as the model to that template.

We will try and get this implemented for the 0.6 release with at least
JSP support (and update the Bookstore example accordingly) but would
also like to have a Velocity or Freemarker plugin (which is better? i
have no direct experience of either).

Paul.

Christian wrote:
> My apologies for the previous incomplete mail.
>
>
> so as I was saying I wrote some articles:
> My humble own opinion about what REST is:
> http://objectif-naiade.blogspot.com/2007/11/what-hell-is-rest.html
>
> Some overview of the jersey framework (+ guided example):
>
> http://objectif-naiade.blogspot.com/2007/11/java-rest-framework-jersey.html
> <http://objectif-naiade.blogspot.com/2007/11/java-rest-framework-jersey.html>
>
> and an article about integrating jersey with guice and freemarker
> (the one you were asking for)
> http://objectif-naiade.blogspot.com/2007/11/integrating-jersey-with-guice-and.html
> <http://objectif-naiade.blogspot.com/2007/11/integrating-jersey-with-guice-and.html>
>
> I'd love people to check them out and leave some comments
>
>
> Christian
>
>
>
> 2007/11/19, Christian <christian.rivasseau_at_gmail.com
> <mailto:christian.rivasseau_at_gmail.com>>:
>
> Hey,
>
> I had been thinking for some time that it would be nice to put some
> of my devs on a blog so you just decided me.
> I wrote three articles this week-end:
> My humble own opinion about what REST is:
> http://objectif-naiade.blogspot.com/2007/11/what-hell-is-rest.html
>
>
>
>
>
>
> 2007/11/16, Marc Hadley < Marc.Hadley_at_sun.com
> <mailto:Marc.Hadley_at_sun.com>>:
>
> Great ! Let me know if there's a blog entry describing your work
> I can
> link to.
>
> Thanks,
> Marc.
>
>
>

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109