cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnament <...@git.apache.org>
Subject [GitHub] cxf pull request #149: [CXF-6987] Also consider the classees defined on an a...
Date Wed, 03 Aug 2016 00:46:29 GMT
Github user johnament commented on a diff in the pull request:

    https://github.com/apache/cxf/pull/149#discussion_r73264429
  
    --- 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 --
    
    Shoot, thanks.  I actually wrote the code for features, but then removed it in my formatting
clean up.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message