[ https://issues.apache.org/activemq/browse/SM-774?page=comments#action_37667 ] Guillaume Nodet commented on SM-774: ------------------------------------
Can't you change the bean that holds the expression instead ? Another way would be to use a spring factory. If possible, i'd rather keep the spring philisophy that the bean does not change after being initialized. Anyway, I can change that if needed, but the reset should be done on all setters i guess. > afterPropertiesSet in JAXPXPathExpression is callable only once > --------------------------------------------------------------- > > Key: SM-774 > URL: https://issues.apache.org/activemq/browse/SM-774 > Project: ServiceMix > Issue Type: Improvement > Components: servicemix-core > Reporter: Ricardo Nobrega > Priority: Minor > > There is no way to change the xpath after afterPropertiesSet is called, which > is > needed, for example, if the xpath is stored in a table, and injected after > the bean is > created. Suggestion: replace > public void setXPath(String xpath) { > this.xpath = xpath; > } > with > public void setXPath(String xpath) { > this.xpath = xpath; > this.xPathExpression = null; > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira