[webbeans-dev] SPI change: InjectionServices added

Pete Muir pmuir at redhat.com
Thu Aug 27 20:27:37 EDT 2009


Here is an update to the SPI docs, based on these changes, and  
clarifications requested by Roger.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: webbeans_reference.pdf
Type: application/pdf
Size: 598376 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/weld-dev/attachments/20090828/f2ac6ae2/attachment.pdf 
-------------- next part --------------



On 28 Aug 2009, at 00:16, Pete Muir wrote:

> Following on from this, I have removed CDI injection services for EJBs
> from the built in EJB interceptor, this now must be performed by the
> container using InjectionTarget.
>
> * to achieve this there are three methods added to WebBeansManager
> (our extension of BeanManager) - createInjectionTarget(EjbDescriptor<?
>> ejbDescriptor); getBean(EjbDescriptor<?> ejbDescriptor); and
> getEjbDescriptor(String ejbName);
>
> These should be used, rather than the "regular" createInjectionTarget
>
>  At the same time, I have also massively simplified a few of the EJB
> structures:
>
> * the container must now implement isRemoved() on
> SessionObjectReference to let WB know if a EJB has been removed.
> Previously Web Beans was detecting this itself
> * we now no longer track EJBs by bean class at all, but rather by ejb
> name througout, to facilitate this, getEjbName has been added to
> EjbDescriptor
>
> Docs to follow.
>
> On 27 Aug 2009, at 15:18, Pete Muir wrote:
>
>> In trunk we now have per-BeanDeploymentArchive services, one of which
>> is InjectionServices, which will be called for every injection
>> performed by WB on contextual and and non-contextual instance
>> _______________________________________________
>> webbeans-dev mailing list
>> webbeans-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>
> _______________________________________________
> 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