I want to create a spring bean as below.
<bean id="qNameString" class="javax.xml.xpath.XPathConstants.STRING"/>
Here I want the reference to return type which is a QName but I understand the way I referred is wrong. Can someone please help on this.
Spring can create a QName for you like this:
Replace
localpartandnamespaceURIwith the local name and namespace.To reference a constant in a class, like
javax.xml.xpath.XPathConstants.STRINGA shorter version is available with the
utilschema:Apart from being shorter, the
idof the bean will bejava.xml.xpath.XPathConstants.STRINGrather thanqNameString.See FieldRetrievingFactoryBean and The util schema