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 Thu, 27 Mar 2014 13:13:16 GMT


Andriy Redko commented on CXF-5576:

Hi Sergey,

Very right, annotation @Inject, @Resource , ... lead to automatic resource injections (by
CDI container). @Produces leads to custom initialization process but the resulting beans are
available for injections.
So for example if users do need to setup own properties on JsonProvider, it would be done
with @Produces and then wire up everywhere (there are also a technique to work with unmanaged
beans using Unmanaged but still CDI annotations should be present) . If there is no need to
setup anything, user may either do nothing or explicitly provide instances over getSingletons
/ getClasses. 

What do you think?


> 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