[webbeans-dev] Deployment time
Pete Muir
pmuir at bleepbleep.org.uk
Mon Mar 30 08:16:49 EDT 2009
There may be some small inconsistencies here: Section 11.1 says that
DefinitionExceptions are raised before @Initialized, and
DeploymentExceptions are raised after @Initialized. The spec also
talks about "an exception is raised at deployment time if..." (e.g.
2.2 "If the type of an injection point is a parameterized type with a
type variable or wildcard, a DefinitionException is thrown by the
container at deployment time."). Sometimes (like above) it makes sense
to do this as a bean validation (i.e. for 3rd party beans too), which
means that the exception will be thrown after @Initialized.
To make this clearer, I think that two phases should be identified -
bean definition time, and bean deployment time, the exceptional cases
tied to the correct one through the spec and the 11.1 statement
modified accordingly.
--
Pete Muir
http://www.seamframework.org
http://in.relation.to/Bloggers/Pete
More information about the weld-dev
mailing list