users@jersey.java.net

[Jersey] Re: Livetime of singletons

From: Markus Karg <markus.karg_at_gmx.net>
Date: Mon, 17 Jan 2011 19:25:57 +0100

Done http://java.net/jira/browse/JSR311-109 :-)

> -----Original Message-----
> From: Paul Sandoz [mailto:Paul.Sandoz_at_oracle.com]
> Sent: Montag, 17. Januar 2011 14:22
> Cc: users_at_jersey.java.net
> Subject: [Jersey] Re: Livetime of singletons
>
>
> On Jan 17, 2011, at 12:23 PM, Markus Karg wrote:
>
> > Paul,
> >
> > thank you for the clarification. So I suspect you will change the
> > JavaDocs automatically and I don't need to file an extra enhancement
> > request?
> >
>
> No, because the docs are part of the spec, can you log a 311 issue.
>
>
> > BTW, I noticed that Jersey 1.4 calls getSingleTons() at least twice,
> > see
> > this code and trace:
> >
>
> Ah :-)
>
>
> > public Set<Object> getSingletons() {
> > System.out.println("*Hello*");
> > return MyApplication.singletons;
> > }
> >
> > INFO: Initiating Jersey application, version 'Jersey: 1.4 09/11/2010
> > 10:41 PM'
> > 17.01.2011 12:20:28
> > com.sun.jersey.server.impl.application.DeferredResourceConfig
> > $Applicatio
> > nHolder <init>
> > INFO: Instantiated the Application class
> > de.quipsy.application.QuipsyApplication
> > *Hello*
> > *Hello*
> > 17.01.2011 12:20:28 com.sun.grizzly.Controller logVersion
> > INFO: Starting Grizzly Framework 1.9.18-e - Mon Jan 17 12:20:28 CET
> > 2011
> >
> > Is that a bug? Shall I file a report?
> >
>
> Yes, please file a bug against Jersey on that.
>
> Paul.