[webbeans-dev] Places WB needs "non-contextual" injection in JBoss AS

Pete Muir pmuir at redhat.com
Mon Jul 20 14:17:02 EDT 2009


Dan,

You'll need to talk to the EE6 EG about this (either directly via  
comments or via Jason) - this list is pulled directly from the EE spec  
(note that the EE spec makes no statements about anything other than  
managed beans being Java EE component classes supporting injection).

Also it's worth pointing out that the JSF RI's SPI only supports  
injection for managed beans, not other objects.

On 20 Jul 2009, at 19:11, Dan Allen wrote:

> Don't forget that JSF entails more than just managed beans. It also  
> included event listeners, phase listeners (and perhaps others I'm  
> not thinking of).
>
> JSF is really been such a problem child in this respect. Is there  
> something we can push for in the JSF spec to make this type of  
> integration easier? For instance, I don't believe that listeners in  
> JSF are managed, but perhaps they should be (support @PostConstruct,  
> @PreDestory and resource injection...hence that would include 299  
> injections as well).
>
> -Dan
>
> On Mon, Jul 20, 2009 at 11:53 AM, Pete Muir <pmuir at redhat.com> wrote:
> Hi Kabir, Jason,
>
> As I mentioned, 299 requires that we inject any "Java EE components
> classes supporting injection" with 299 dependencies:
>
> * Servlet - servlets, servlet filters, event listeners
> * JSP tag handlers, tag library event listeners
> * JSF scoped managed beans
> * JAX-WS service endpoints, handlers
> * EJB beans, interceptors
> * Java EE  platform main class (static)
> * login callback handler
>
> Ales and I propose we do this via enabling 299 injection into MC
> supported component models where possible.
>
> Some (e.g. JSF) won't work, and will need other integration...
>
> How far are all of these from being MC enabled?
>
> How do we want to create JIRA issues for these to be done?
>
>
>
> Note, I'm still missing the impl for this, but the API is something
> like:
>
> // for each class supporting injection
>
> InjectionTarget it = beanManager.createInjectionTarget(type);
>
> // for each instance requiring injection
>
> it.inject(instance, beanManager.createCreationalContext(null));
>
> // postconstruct hook
>
> it.postConstruct(instance);
>
> it.preDestroy(instance);
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>
>
>
> -- 
> Dan Allen
> Senior Software Engineer, Red Hat | Author of Seam in Action
> Registered Linux User #231597
>
> http://mojavelinux.com
> http://mojavelinux.com/seaminaction
> http://in.relation.to/Bloggers/Dan
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev




More information about the weld-dev mailing list