[webbeans-dev] Terminology

Gavin King gavin at hibernate.org
Mon Nov 24 08:43:28 EST 2008


On Mon, Nov 24, 2008 at 8:32 AM, Nicklas Karlsson <nickarls at gmail.com> wrote:

> Could the term "Managed" or "Contextual" be applied instead?

With the introduction of the Contextual interface, "contextual type"
already means something. (It would be possible to change that
terminology also, of course.) What we are looking for is a terminology
to distinguish things that implement the Bean interface ... the
defining feature of which is that it makes a contextual type available
for injection or lookup by name.

Yes, "managed" is an option I suppose, but there are lots of
container-managed types (servlets, MDBs) which are by nature *not*
injectable, so I don't love it.

> Although
> a session bean is automagically a session bean
> in WB it looks like no value has been added at all. "Managed session
> bean"? "Contextual session bean"?

Injectable session bean is a possibilty, but if the all session beans
are injectable, what does this terminology add, apart from confusion?

> Are singleton beans also classified as "session beans" BTW?

Yes.

-- 
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