[
https://issues.apache.org/jira/browse/CAMEL-5505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434814#comment-13434814
]
Alexander Titov commented on CAMEL-5505:
----------------------------------------
Ahh, i got it.
But how can we today set reference property (lookup in registry) in URI?
Without # i got exception:
org.apache.camel.FailedToCreateRouteException
..............
Caused by: java.lang.IllegalArgumentException: Could not find a suitable setter
for property: uriResolver as there isn't a setter method with same type:
java.lang.String nor type conversion possible: No type converter available to
convert from type: java.lang.String to the required type:
javax.xml.transform.URIResolver with value uriResolver
at
org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:347)
at
org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:367)
at
org.apache.camel.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:297)
at
org.apache.camel.util.EndpointHelper.setProperties(EndpointHelper.java:249)
at
org.apache.camel.impl.DefaultComponent.setProperties(DefaultComponent.java:222)
at
org.apache.camel.component.xslt.XsltComponent.configureXslt(XsltComponent.java:145)
at
org.apache.camel.component.xslt.XsltComponent.createEndpoint(XsltComponent.java:124)
at
org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:91)
at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:450)
... 33 more
I will look in other components to see, how i can lookup beans in registry.
Thanks for help.
> Unable to customize URIResolver in xslt component
> -------------------------------------------------
>
> Key: CAMEL-5505
> URL: https://issues.apache.org/jira/browse/CAMEL-5505
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.10.0, 2.11.0
> Reporter: Alexander Titov
> Assignee: Hadrian Zbarcea
> Priority: Minor
> Labels: camel-core,, test, xslt
> Attachments: camel-core-xslt-CustomURIResolver.patch
>
>
> In xslt component we can't customize uriResolver For instance in route with
> uri
> "xslt:org/apache/camel/component/xslt/include_not_existing_resource.xsl?uriResolver=#customURIResolver"
> camel still uses default XsltUriResolver.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira