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

Vjacheslav Borisov commented on CXF-6150:
-----------------------------------------

May be I don't understand, but i want to configure "refresh templates" 
(CXF-5854) in spring, not in code 

And this issue is different, becouse I need to programatically specify xslt url 
in some cases 
I specify default xslt using annotation, and make overrides in code using 
messageContext


> Override XSLTJaxbProvider xsl path at runtime
> ---------------------------------------------
>
>                 Key: CXF-6150
>                 URL: https://issues.apache.org/jira/browse/CXF-6150
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS
>    Affects Versions: 3.0.2
>            Reporter: Vjacheslav Borisov
>            Priority: Minor
>
> XSLTJaxbProvider xslt url could be configured at runtime using MessageContext:
> eg, at jax-rs method 
> messageContext.put("xslt.template","stylesheets/path/to/xsl");
> and in XSLTJaxbProvider::getOutTemplates 
> {code:title=XSLTJaxbProvider.java|borderStyle=solid}
>         MessageContext mc = getContext();
>         if (mc != null) {
>             String template=(String)mc.getContextualProperty("xslt.template");
>             if(template!=null){
>                 t=createTemplates(template);
>             }
>         }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to