public class TemplateInstanceDefinitionParser extends Object implements org.springframework.beans.factory.xml.BeanDefinitionParser
<template:instance name="testTemplate" t:beanName="test" />
or with:
<template:instance name="testTemplate">
<template:parameter name="beanName" value="test"/>
</template:instance>
TODO: you can also pass bean references with "value-ref", "t:somename-ref" or inner bean declaration inside the
template:parameter element.| Constructor and Description |
|---|
TemplateInstanceDefinitionParser(BeanTemplateDao templateDao)
construct a template instance definition parser.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.beans.factory.config.BeanDefinition |
parse(Element element,
org.springframework.beans.factory.xml.ParserContext parserContext) |
public TemplateInstanceDefinitionParser(BeanTemplateDao templateDao)
templateDao - template dao instancepublic org.springframework.beans.factory.config.BeanDefinition parse(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
parse in interface org.springframework.beans.factory.xml.BeanDefinitionParserBeanDefinitionParser.parse(org.w3c.dom.Element,
org.springframework.beans.factory.xml.ParserContext)Copyright © 2026. All rights reserved.