You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jarek Gawor (JIRA)" <ji...@apache.org> on 2007/02/06 17:47:05 UTC
[jira] Created: (CXF-408) Resolving the handler file in
AnnotationHandlerChainBuilder
Resolving the handler file in AnnotationHandlerChainBuilder
-----------------------------------------------------------
Key: CXF-408
URL: https://issues.apache.org/jira/browse/CXF-408
Project: CXF
Issue Type: Improvement
Components: JAX-WS Runtime
Affects Versions: 2.0-RC
Reporter: Jarek Gawor
In AnnotationHandlerChainBuilder.buildHandlerChainFromClass() the filename of the annotation is resolved by doing:
URL handlerFileURL = clz.getResource(hcAnn.getFileName());
However, sometimes it might be necessary to resolve the file in a different way. It would be great if the AnnotationHandlerChainBuilder could be modified so that this behavior could be overwritten. For example, factor this call into a protected method:
URL handlerFileURL = resolveHandlerChainFile(clz, hcAnn.getFileName());
....
protected URL resolveHandlerChainFile(Class clz, String filename) {
return clz.getResource(filename);
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (CXF-408) Resolving the handler file in
AnnotationHandlerChainBuilder
Posted by "Jervis Liu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jervis Liu closed CXF-408.
--------------------------
> Resolving the handler file in AnnotationHandlerChainBuilder
> -----------------------------------------------------------
>
> Key: CXF-408
> URL: https://issues.apache.org/jira/browse/CXF-408
> Project: CXF
> Issue Type: Improvement
> Components: JAX-WS Runtime
> Affects Versions: 2.0-RC
> Reporter: Jarek Gawor
> Assigned To: Jervis Liu
>
> In AnnotationHandlerChainBuilder.buildHandlerChainFromClass() the filename of the annotation is resolved by doing:
> URL handlerFileURL = clz.getResource(hcAnn.getFileName());
> However, sometimes it might be necessary to resolve the file in a different way. It would be great if the AnnotationHandlerChainBuilder could be modified so that this behavior could be overwritten. For example, factor this call into a protected method:
> URL handlerFileURL = resolveHandlerChainFile(clz, hcAnn.getFileName());
> ....
> protected URL resolveHandlerChainFile(Class clz, String filename) {
> return clz.getResource(filename);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CXF-408) Resolving the handler file in
AnnotationHandlerChainBuilder
Posted by "Jervis Liu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jervis Liu resolved CXF-408.
----------------------------
Resolution: Fixed
> Resolving the handler file in AnnotationHandlerChainBuilder
> -----------------------------------------------------------
>
> Key: CXF-408
> URL: https://issues.apache.org/jira/browse/CXF-408
> Project: CXF
> Issue Type: Improvement
> Components: JAX-WS Runtime
> Affects Versions: 2.0-RC
> Reporter: Jarek Gawor
> Assigned To: Jervis Liu
>
> In AnnotationHandlerChainBuilder.buildHandlerChainFromClass() the filename of the annotation is resolved by doing:
> URL handlerFileURL = clz.getResource(hcAnn.getFileName());
> However, sometimes it might be necessary to resolve the file in a different way. It would be great if the AnnotationHandlerChainBuilder could be modified so that this behavior could be overwritten. For example, factor this call into a protected method:
> URL handlerFileURL = resolveHandlerChainFile(clz, hcAnn.getFileName());
> ....
> protected URL resolveHandlerChainFile(Class clz, String filename) {
> return clz.getResource(filename);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CXF-408) Resolving the handler file in
AnnotationHandlerChainBuilder
Posted by "Jervis Liu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jervis Liu reassigned CXF-408:
------------------------------
Assignee: Jervis Liu
> Resolving the handler file in AnnotationHandlerChainBuilder
> -----------------------------------------------------------
>
> Key: CXF-408
> URL: https://issues.apache.org/jira/browse/CXF-408
> Project: CXF
> Issue Type: Improvement
> Components: JAX-WS Runtime
> Affects Versions: 2.0-RC
> Reporter: Jarek Gawor
> Assigned To: Jervis Liu
>
> In AnnotationHandlerChainBuilder.buildHandlerChainFromClass() the filename of the annotation is resolved by doing:
> URL handlerFileURL = clz.getResource(hcAnn.getFileName());
> However, sometimes it might be necessary to resolve the file in a different way. It would be great if the AnnotationHandlerChainBuilder could be modified so that this behavior could be overwritten. For example, factor this call into a protected method:
> URL handlerFileURL = resolveHandlerChainFile(clz, hcAnn.getFileName());
> ....
> protected URL resolveHandlerChainFile(Class clz, String filename) {
> return clz.getResource(filename);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.