[cdi-dev] [JBoss JIRA] (CDI-458) Give the possibility to deactivate an observer in ProcessObserverMethod

Jozef Hartinger (JIRA) issues at jboss.org
Mon Oct 6 11:47:13 EDT 2014


    [ https://issues.jboss.org/browse/CDI-458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008931#comment-13008931 ] 

Jozef Hartinger commented on CDI-458:
-------------------------------------

Proposed SPI changes:

https://github.com/weld/api/blob/3.0.Alpha1/weld/src/main/java/org/jboss/weld/experimental/ExperimentalProcessObserverMethod.java

> Give the possibility to deactivate an observer in ProcessObserverMethod
> -----------------------------------------------------------------------
>
>                 Key: CDI-458
>                 URL: https://issues.jboss.org/browse/CDI-458
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Events, Portable Extensions
>    Affects Versions: 1.2.Final
>            Reporter: Antoine Sabot-Durand
>             Fix For: 2.0 (discussion)
>
>
> Today if a user want to deactivate an observer at deployment time, she needs to observes {{ProcessAnnotatedType}} with {{@WithAnnotation(Observes.class)}} and replace the annotatedType by a new one without the {{@Observes}} annotation. It's quite heavy to manage.
> We could add a {{veto()}} method in {{ProcessObserverMethod}} to do this in a far easier and intuitive way. 



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the cdi-dev mailing list