[webbeans-dev] Fwd: static producers

Gavin King gavin at hibernate.org
Fri Nov 14 12:50:59 EST 2008


---------- Forwarded message ----------
From: Gavin King <gavin at hibernate.org>
Date: Fri, Nov 14, 2008 at 12:50 PM
Subject: static producers
To: Java Community Process JSR #299 Expert List <JSR-299-EG at jcp.org>


Question:

should we allow producer methods and fields to be declared "static"?

This would mean that the Web Bean manager does not need to instantiate
an instance of the Web Bean that declares the producer method/field
when invoking the method/field.

I can't think of a good reason why *not*...

Furthermore, should we allow static observer and disposal methods?
Again, I can't quite think of a reason why *not*...

--
Gavin King
gavin.king at gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org



-- 
Gavin King
gavin.king at gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org



More information about the weld-dev mailing list