cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-6987) Consider classes attribute of application when using CDI
Date Wed, 03 Aug 2016 01:13:20 GMT

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

ASF GitHub Bot commented on CXF-6987:
-------------------------------------

Github user reta commented on a diff in the pull request:

    https://github.com/apache/cxf/pull/149#discussion_r73266477
  
    --- Diff: integration/cdi/src/main/java/org/apache/cxf/cdi/JAXRSCdiResourceExtension.java
---
    @@ -179,7 +185,13 @@ private JAXRSServerFactoryBean createFactoryInstance(final Application
applicati
                     classified.get(Path.class).add(singleton);
                 }
             }
    -        
    +
    +        // now loop through the classes
    +        Set<Class<?>> classes = application.getClasses();
    +        if (!classes.isEmpty()) {
    +            classified.get(Path.class).addAll(loadServices(beanManager, classes));
    +            classified.get(Provider.class).addAll(loadProviders(beanManager, classes));
    --- End diff --
    
    :+1: Thanks!


> Consider classes attribute of application when using CDI
> --------------------------------------------------------
>
>                 Key: CXF-6987
>                 URL: https://issues.apache.org/jira/browse/CXF-6987
>             Project: CXF
>          Issue Type: Improvement
>    Affects Versions: 3.1.6
>            Reporter: John D. Ament
>
> CXF's CDI integration integration assumes that all of the components included will be
CDI beans.  They either need to be defined as singletons, or picked up via scanning.  If singleton
is specified, the classes are ignored.
> - It ignores classes defined.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message