[JBoss JIRA] Commented: (CDI-3) Add add an event that fires after all ProcessAnnotatedType events that allows you to add new AnnotatedTypes
by Pete Muir (JIRA)
[ https://issues.jboss.org/browse/CDI-3?page=com.atlassian.jira.plugin.syst... ]
Pete Muir commented on CDI-3:
-----------------------------
Updated proposal is to clarify that BBD should occur after all classes are discovered and before beans are discovered. A search of all Seam and Errai code revealed that this wouldn't break anything. Anyone else got any concerns?
We would also add a BeforeTypeDiscovery event that would occur after modules are discovered and before types are discovered, and potentially a BeforeModuleDiscovery event.
> Add add an event that fires after all ProcessAnnotatedType events that allows you to add new AnnotatedTypes
> ------------------------------------------------------------------------------------------------------------
>
> Key: CDI-3
> URL: https://issues.jboss.org/browse/CDI-3
> Project: CDI Specification Issues
> Issue Type: Feature Request
> Components: Portable Extensions
> Affects Versions: 1.0
> Reporter: Stuart Douglas
> Fix For: 1.1 (Proposed)
>
>
> At the moment AnnotatedTypes can only be added in the BeforeBeanDiscovery phase. This means that if you want to install additional beans based on the beans processed in the ProcessAnnotatedType phase you must instead add implementations of the Bean interface in the AfterBeanDiscovery phase. This interface is more limited than annotated type, and does not let you exactly mimic the behaviour of beans added as AnnotatedTypes.
> Some of the things that the bean interface will not let you mimic are:
> - Interceptors
> - Disposal methods
> - Producer fields for normal scoped beans
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 3 months
[JBoss JIRA] Updated: (CDI-59) Clarify interceptors/decorators aren't applied to the *result* of a producer method or producer field
by Pete Muir (JIRA)
[ https://issues.jboss.org/browse/CDI-59?page=com.atlassian.jira.plugin.sys... ]
Pete Muir updated CDI-59:
-------------------------
Summary: Clarify interceptors/decorators aren't applied to the *result* of a producer method or producer field (was: Clarify that interceptors/decorators don't apply to producers in resolution rules)
Description: Interceptors can be applied to the invocation of a producer method, but not to a bean produced by a producer method. Decorators cannot be applied
I wonder if decorators should be applied? If so, let's spin it out as a feature request.
> Clarify interceptors/decorators aren't applied to the *result* of a producer method or producer field
> -----------------------------------------------------------------------------------------------------
>
> Key: CDI-59
> URL: https://issues.jboss.org/browse/CDI-59
> Project: CDI Specification Issues
> Issue Type: Clarification
> Components: Beans, Decorators, Interceptors, Resolution
> Affects Versions: 1.0
> Reporter: Pete Muir
> Assignee: Marius Bogoevici
> Priority: Minor
> Fix For: 1.1 (Proposed)
>
>
> Interceptors can be applied to the invocation of a producer method, but not to a bean produced by a producer method. Decorators cannot be applied
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 3 months