geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John D. Ament (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GERONIMO-6578) CDI.setCDIProvider caches the value of CDIProvider.getCDI
Date Mon, 14 Aug 2017 11:58:00 GMT
John D. Ament created GERONIMO-6578:
---------------------------------------

             Summary: CDI.setCDIProvider caches the value of CDIProvider.getCDI
                 Key: GERONIMO-6578
                 URL: https://issues.apache.org/jira/browse/GERONIMO-6578
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: specs
            Reporter: John D. Ament
            Assignee: John D. Ament


The CDI 2.0 spec requires that when {{setCDIProvider}} is invoked by the application, it is
the value used rather than the service loader value.

The Geronimo Spec current calls {{getCDI()}} on the passed in instance and in the {{current()}}
method checks to see if the instance is null, and performs service provider look up.

Instead, Geronimo should just save the provider, and if the provider is not found do service
provider lookup.

http://docs.jboss.org/cdi/spec/2.0/cdi-spec-with-assertions.html#provider



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message