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>
|
||||
|
||||
@@ -14,28 +14,28 @@
|
||||
<channel id="noSelectors">
|
||||
<queue capacity="10"/>
|
||||
<interceptors>
|
||||
<wire-tap target="wireTapChannel"/>
|
||||
<wire-tap channel="wireTapChannel"/>
|
||||
</interceptors>
|
||||
</channel>
|
||||
|
||||
<channel id="accepting">
|
||||
<queue capacity="10"/>
|
||||
<interceptors>
|
||||
<wire-tap target="wireTapChannel" selector="acceptingSelector"/>
|
||||
<wire-tap channel="wireTapChannel" selector="acceptingSelector"/>
|
||||
</interceptors>
|
||||
</channel>
|
||||
|
||||
<channel id="rejecting">
|
||||
<queue capacity="10"/>
|
||||
<interceptors>
|
||||
<wire-tap target="wireTapChannel" selector="rejectingSelector"/>
|
||||
<wire-tap channel="wireTapChannel" selector="rejectingSelector"/>
|
||||
</interceptors>
|
||||
</channel>
|
||||
|
||||
<channel id="timeout">
|
||||
<queue capacity="10"/>
|
||||
<interceptors>
|
||||
<wire-tap target="wireTapChannel" timeout="1234"/>
|
||||
<wire-tap channel="wireTapChannel" timeout="1234"/>
|
||||
</interceptors>
|
||||
</channel>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user