You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Gerhard Petracek (JIRA)" <ji...@apache.org> on 2012/07/06 23:30:34 UTC

[jira] [Comment Edited] (DELTASPIKE-208) activateGlobalAlternatives is broken

    [ https://issues.apache.org/jira/browse/DELTASPIKE-208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13406887#comment-13406887 ] 

Gerhard Petracek edited comment on DELTASPIKE-208 at 7/6/12 9:29 PM:
---------------------------------------------------------------------

original discussion: http://mail-archives.apache.org/mod_mbox/incubator-deltaspike-dev/201201.mbox/%3CCAGJtJfHs541cHx6%3DRZ0Q%3DXo5LB93WMzXKE5VTMQictyc1H50yg%40mail.gmail.com%3E
since you don't use beans.xml for it, you also need it for owb to keep an application portable. and with cdi 1.1 you >can< move the config used in the properties file to the beans.xml and the behaviour is the same.
however, it's correct that it isn't compatible with more complex extensions which handle an alternative bean differently. so it needs to be documented.
but it works pretty fine for a lot of use-cases e.g. for custom implementations of config beans (even with old versions of weld).
                
      was (Author: gpetracek):
    original discussion: http://mail-archives.apache.org/mod_mbox/incubator-deltaspike-dev/201201.mbox/%3CCAGJtJfHs541cHx6%3DRZ0Q%3DXo5LB93WMzXKE5VTMQictyc1H50yg%40mail.gmail.com%3E
                  
> activateGlobalAlternatives is broken
> ------------------------------------
>
>                 Key: DELTASPIKE-208
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-208
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.2-incubating
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 0.3-incubating
>
>
> for OWB:
> a.) We shall not need to do anything special for OWB at all. OWB by default comes without BDA enabled. If people have BDA enabled in their OWB installation, then they can _easily_ switch it off again via a simple property. There is really no need to do something special for OWB.
> b.) replacing the AnnotatedType with a completely different return Type screws up the CDI container. It's really not expected and I'm not sure if this is allowed at all.
> c.) by replacing the target type, you end up not scanning one of this class at all, effectively disabling Extension processing for it.
> for Weld:
> instead of introducing our own properties we shall scan the beans.xml and act accordingly.
> in general: mixing this complicated topic with the @Exclude extension is highly confusing.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira