-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathBehaviourNamespaceParser.cs
27 lines (24 loc) · 1.04 KB
/
BehaviourNamespaceParser.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using Spring.Objects.Factory.Xml;
namespace Inversion.Spring {
/// <summary>
/// Registers tags to be used in configuration with the class that will process
/// those tags.
/// </summary>
[NamespaceParser(
Namespace = "Inversion.Process.Behaviour",
SchemaLocationAssemblyHint = typeof(BehaviourNamespaceParser),
SchemaLocation = "/Inversion.Spring/behaviour.xsd"
)]
public class BehaviourNamespaceParser : NamespaceParserSupport {
/// <summary>
/// Invoked by <see cref="T:Spring.Objects.Factory.Xml.NamespaceParserRegistry"/> after construction but before any
/// elements have been parsed.
/// </summary>
public override void Init() {
this.RegisterObjectDefinitionParser("behaviour", new BehaviourObjectDefinitionParser());
this.RegisterObjectDefinitionParser("message-trace", new BehaviourObjectDefinitionParser());
this.RegisterObjectDefinitionParser("message-sequence", new BehaviourObjectDefinitionParser());
this.RegisterObjectDefinitionParser("view", new ViewBehaviourObjectDefinitionParser());
}
}
}