Re: Lifecycle options

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Tue, 10 Jul 2007 10:11:47 -0400

On Jul 10, 2007, at 6:13 AM, Dhanji R. Prasanna wrote:
> A root resource class annotated with @Scope(APPLICATION) would be
> required to a have a zero argument constructor and be thread-safe.
> This is also an unreasonable restriction in my book. Constructor
> injection is a vital programmer idiom and an important facilitator
> for safe-publication of member fields (private final) which is a
> major component to making things thread-safe.
Right, when I wrote that I had in mind our annotations which make
little sense outside the scope of a request but its likely that other
annotations could make sense.


Marc Hadley <marc.hadley at>
CTO Office, Sun Microsystems.