update schema to include pubsub-domain attribute.
This commit is contained in:
@@ -88,6 +88,8 @@ namespace Spring.Messaging.Ems.Config
|
||||
private readonly string MAX_RECOVERY_TIME_ATTRIBUTE = "max-recovery-time";
|
||||
|
||||
private readonly string CONNECTION_FACTORY_ATTRIBUTE = "connection-factory";
|
||||
|
||||
private readonly string PUBSUB_DOMAIN_ATTRIBUTE = "pubsub-domain";
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -190,6 +192,9 @@ namespace Spring.Messaging.Ems.Config
|
||||
parserContext.ReaderContext.GenerateObjectName(containerDefBuilder.RawObjectDefinition);
|
||||
}
|
||||
|
||||
string pubsubDomain = listenerElement.GetAttribute(PUBSUB_DOMAIN_ATTRIBUTE);
|
||||
containerDefBuilder.AddPropertyValue("PubSubDomain", pubsubDomain);
|
||||
|
||||
parserContext.Registry.RegisterObjectDefinition(containerObjectName, containerDefBuilder.ObjectDefinition);
|
||||
}
|
||||
|
||||
|
||||
@@ -196,6 +196,16 @@
|
||||
]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
<xsd:attribute name="pubsub-domain" type="xsd:boolean" use="optional" default="false">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
<![CDATA[
|
||||
Set to true for the publish-subscribe domain (Topics) or false (the default) for the
|
||||
point-to-point domain (Queues).
|
||||
]]>
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
</xsd:complexType>
|
||||
|
||||
</xsd:schema>
|
||||
|
||||
Reference in New Issue
Block a user