cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jervis Liu (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-437) @Resources are not injected into Handlers
Date Wed, 28 Feb 2007 07:28:05 GMT

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

Jervis Liu commented on CXF-437:
--------------------------------

>From JAX-WS spec section 9.3.1:

The lifecycle of a handler instance begins when the JAX-WS runtime system creates a new instance
of the 
handler class. 

The runtime MUST then carry out any injections requested by the handler, typically via the
javax-
.annotation.Resource annotation. After all the injections have been carried out, including
in the case 
where no injections were requested, the runtime MUST invoke the method carrying a javax.annotation-

.PostConstruct annotation, if present. Such a method MUST satisfy the requirements in JSR-250
[31] 
for lifecycle methods (i.e. it has a void return type and takes zero arguments). The handler
instance is then 
ready for use.

> @Resources are not injected into Handlers
> -----------------------------------------
>
>                 Key: CXF-437
>                 URL: https://issues.apache.org/jira/browse/CXF-437
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.0-RC
>            Reporter: Daniel Kulp
>             Fix For: 2.0-RC
>
>
> The only resources that are injected into the JAX-WS handlers are the ones defined as
init params.   The complete set needs to be available and injected.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message