[weld-issues] [JBoss JIRA] Commented: (CDITCK-205) Add test to verify extensions in non-bean archives are loaded

Dan Allen (JIRA) jira-events at lists.jboss.org
Tue Jan 18 15:08:49 EST 2011


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

Dan Allen commented on CDITCK-205:
----------------------------------

The issue report http://java.net/jira/browse/GLASSFISH-14808 covers the problem that was discovered in the reference implementation and how it was resolved.

> Add test to verify extensions in non-bean archives are loaded
> -------------------------------------------------------------
>
>                 Key: CDITCK-205
>                 URL: https://issues.jboss.org/browse/CDITCK-205
>             Project: CDI TCK
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Tests
>    Affects Versions: 1.0.4.Final
>            Reporter: Dan Allen
>            Priority: Minor
>
> Add a test to answers this question:
> Does an extension have to be in an bean archive in order to be loaded?
> Section 11.5 states:
> "An extension is a service provider of the service javax.enterprise.inject.spi.Extension declared in META-INF/services."
> If one assumes that "service provider" refers to the term defined in the jar specification [1], then one would conclude that an extension does not have to be in a bean archive to be recognized (these are orthogonal concerns).
> A test for this scenario is available in the OpenTCK project and may be ported to the CDI TCK. [2]
> [1] http://download.oracle.com/javase/6/docs/technotes/guides/jar/jar.html#Service%20Provider
> [2] https://github.com/opentck/javaee_cdi/tree/master/src/test/java/org/opentck/javaee/cdi/spi/beforebeandiscovery

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list