I have a custom tag I have created for Spring using the AbstractSingleBeanDefinitionParser. For this tag I want to use a tag as a child tag, but I don’t want to have to implement the XML Element parsing by hand.
Can someone tell me where is the code that Spring uses to parse the <property> tag? That, or how to leverage existing code to parse it for me.
I suggest using one of the existing subclasses of
AbstractSingleBeanDefinitionParseras a template, and producing your own version. To pick a random example that uses nested elements –ScheduledTasksBeanDefinitionParser. This demonstrates how to chunk through the suppliedElementobject represnting your tag, and how to convert nested elements into useful config.