Replaced the 'target' attribute with 'channel' on the <wire-tap/> element.
This commit is contained in:
@@ -34,9 +34,9 @@ public class WireTapParser implements BeanDefinitionRegisteringParser {
|
||||
|
||||
public String parse(Element element, ParserContext parserContext) {
|
||||
BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(WireTap.class);
|
||||
String targetRef = element.getAttribute("target");
|
||||
String targetRef = element.getAttribute("channel");
|
||||
if (!StringUtils.hasText(targetRef)) {
|
||||
throw new ConfigurationException("the 'target' attribute is required");
|
||||
throw new ConfigurationException("the 'channel' attribute is required");
|
||||
}
|
||||
builder.addConstructorArgReference(targetRef);
|
||||
String selectorRef = element.getAttribute("selector");
|
||||
|
||||
@@ -429,7 +429,7 @@
|
||||
Defines a Wire Tap Channel Interceptor.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:attribute name="target" type="xsd:string" use="required"/>
|
||||
<xsd:attribute name="channel" type="xsd:string" use="required"/>
|
||||
<xsd:attribute name="selector" type="xsd:string" use="optional"/>
|
||||
<xsd:attribute name="timeout" type="xsd:long" use="optional"/>
|
||||
</xsd:complexType>
|
||||
|
||||
Reference in New Issue
Block a user