forked from nutzam/nutz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnutz-aop-0.1.xsd
26 lines (24 loc) · 1.25 KB
/
nutz-aop-0.1.xsd
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
格式说明:
1. 只有class一种节点
2. 必须有 name/method/interceptor,只有singleton是可选的
3. name/method均使用正则表达式,class用于匹配类的全称Class.getName(),method用于匹配Method.getName()
4. 如果interceptor以ioc: 开头,则从ioc容器读取, 否则将认为是class name,且必须为全称
5. 如果interceptor为class name,则singleton属性有效,当singleton=true,interceptor为单例,
否则,每次都直接调用Class.newInstance(),故必须有无参的构造方法
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="t_aop">
<xs:sequence>
<xs:element name="class" type="t_class" maxOccurs="unbounded" minOccurs="0"></xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="t_class">
<xs:attribute name="name" type="xs:string" use="required"></xs:attribute>
<xs:attribute name="method" type="xs:string" use="required"></xs:attribute>
<xs:attribute name="interceptor" type="xs:string" use="required"></xs:attribute>
<xs:attribute name="singleton" type="xs:boolean"></xs:attribute>
</xs:complexType>
<xs:element name="aop" type="t_aop"></xs:element>
</xs:schema>