[
https://issues.apache.org/jira/browse/CXF-5576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13910165#comment-13910165
]
Sergey Beryozkin edited comment on CXF-5576 at 2/24/14 10:19 AM:
-----------------------------------------------------------------
Hi Andriy, thanks for opening this JIRA.
I guess I'd limit the POC to "the implementations MUST support the use of
CDI-style Beans as root resource classes" (JAX-RS 2.0), which I read as "a
root resource/service class can be created by the CDI container and it can have
other bean references injected into it via @Inject".
I believe the same would work for JAX-WS service classes. We can continue do
the common and also frontend-specific enhancements as the next steps...Right
now, as far as JAX-RS 2.0 is concerned, we should continue to assume the
contexts (UriInfo, etc) are injected via JAX-RS @Context as recommended by the
spec...
Cheers, Sergey
was (Author: sergey_beryozkin):
Hi Andriy, thanks for opening this JIRA.
I guess I'd limit the POC to "the implementations MUST support the use of
CDI-style Beans as root resource classes" (JAX-RS 2.0), which I read as "a
root resource/service class can be created by the CDI container and it can have
other bean references injected into it via @Inject".
I believe the same would work for JAX-WS service classes. We can continue do
the common and also frontend-specific enhancements as the next steps...Right
now, as far as JAX-RS 2.0 is concerned, we should continue to assume the
contexts (UriInfo, etc) are injected via JAX-ES @Context as recommended by the
spec...
Cheers, Sergey
> Initital support for CDI integration
> ------------------------------------
>
> Key: CXF-5576
> URL: https://issues.apache.org/jira/browse/CXF-5576
> Project: CXF
> Issue Type: Improvement
> Components: Core
> Affects Versions: 3.0.0
> Reporter: Andriy Redko
> Assignee: Andriy Redko
> Labels: cdi
>
> 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
(v6.1.5#6160)