cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andriy Redko (JIRA)" <>
Subject [jira] [Commented] (CXF-5576) Initital support for CDI integration
Date Mon, 24 Mar 2014 04:27:43 GMT


Andriy Redko commented on CXF-5576:

Hi Sergey,

I found the reference for application and classes/singleton resolution, it is page 9 of the
JAX-RS 2.0 spec.
When an Application subclass is present in the archive, if both Application.getClasses
and Application.getSingletons return an empty collection then all root resource classes and
providers packaged in the web application MUST be included and the JAX-RS implementation is
REQUIRED to discover them automatically by scanning a .war file as described above. If either
getClasses or getSingletons returns a non-empty collection then only those classes or single-
tons returned MUST be included in the published JAX-RS application.

> Initital support for CDI integration
> ------------------------------------
>                 Key: CXF-5576
>                 URL:
>             Project: CXF
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 3.0.0
>            Reporter: Andriy Redko
>            Assignee: Andriy Redko
>              Labels: cdi
>         Attachments:,
> A per section 10.2.3 Context and Dependency Injection (CDI) of JAX-RS 2.0 specification,
in a product that supports CDI, the implementations MUST support the use of CDI-style Beans
as root resource classes, providers and Application subclasses. Providers and Application
subclasses MUST be singletons or use application scope.

This message was sent by Atlassian JIRA

View raw message