@Startup in all components #47
Comments
Reported by arungupta |
arungupta said: Some more at: https://twitter.com/arungupta/status/611493850092322816 |
rdebusscher said: CDI -> @observes @initialized(ApplicationScoped.class) see also http://javaeesquad.blogspot.be/2015/03/getting-notified-when-java-ee.html Uniformization of this is indeed a good thing and JAX-RS is missing on the above list. |
reza_rahman said: |
arjan_t said: See also: http://omnifaces.org/docs/javadoc/2.1/org/omnifaces/cdi/Startup.html |
agoncal said: |
rmannibucau said: Note that instead of duplicating existing API using CDI as real backbone for all spec would solve it (ie allowing servlet and web components to be cdi beans and not just injected) |
arjan_t said:
+1
Funny that you mention this, since for OmniFaces we were prototyping exactly this A CDI bean that acts, more or less, exactly as a Servlet. It's a little bit a continuation of our @Eager/@startup bean above. In broad lines, an extension collects those beans, then a special Servlet delegates to them. For the user, the new "CDI Servlet" IS the Servlet and except for the stack trace doesn't get to see the "real" Servlet. Several specs are already rebasing on CDI, but it's going slowly and sometimes even taking a step back (see what happened with SERVLET_SPEC-116) |
This issue was imported from java.net JIRA JAVAEE_SPEC-47 |
@startup is currently allowed only on EJB and should be allowed on any Java EE component.
The text was updated successfully, but these errors were encountered: