Skip to content

Commit 450dbb2

Browse files
committed
Reintroduced "mode" and "proxy-target-class" attributes in spring-task-3.1/3.2.xsd
Issue: SPR-10177
1 parent abbe1db commit 450dbb2

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed

spring-context/src/main/resources/org/springframework/scheduling/config/spring-task-3.1.xsd

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,39 @@
5252
]]></xsd:documentation>
5353
</xsd:annotation>
5454
</xsd:attribute>
55+
<xsd:attribute name="mode" default="proxy">
56+
<xsd:annotation>
57+
<xsd:documentation><![CDATA[
58+
Should annotated beans be proxied using Spring's AOP framework,
59+
or should they rather be weaved with an AspectJ async execution aspect?
60+
61+
AspectJ weaving requires spring-aspects.jar on the classpath,
62+
as well as load-time weaving (or compile-time weaving) enabled.
63+
64+
Note: The weaving-based aspect requires the @Async annotation to be
65+
defined on the concrete class. Annotations in interfaces will not work
66+
in that case (they will rather only work with interface-based proxies)!
67+
]]></xsd:documentation>
68+
</xsd:annotation>
69+
<xsd:simpleType>
70+
<xsd:restriction base="xsd:string">
71+
<xsd:enumeration value="proxy"/>
72+
<xsd:enumeration value="aspectj"/>
73+
</xsd:restriction>
74+
</xsd:simpleType>
75+
</xsd:attribute>
76+
<xsd:attribute name="proxy-target-class" type="xsd:boolean" default="false">
77+
<xsd:annotation>
78+
<xsd:documentation><![CDATA[
79+
Are class-based (CGLIB) proxies to be created? By default, standard
80+
Java interface-based proxies are created.
81+
82+
Note: Class-based proxies require the @Async annotation to be defined
83+
on the concrete class. Annotations in interfaces will not work in
84+
that case (they will rather only work with interface-based proxies)!
85+
]]></xsd:documentation>
86+
</xsd:annotation>
87+
</xsd:attribute>
5588
</xsd:complexType>
5689
</xsd:element>
5790

spring-context/src/main/resources/org/springframework/scheduling/config/spring-task-3.2.xsd

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,39 @@
5252
]]></xsd:documentation>
5353
</xsd:annotation>
5454
</xsd:attribute>
55+
<xsd:attribute name="mode" default="proxy">
56+
<xsd:annotation>
57+
<xsd:documentation><![CDATA[
58+
Should annotated beans be proxied using Spring's AOP framework,
59+
or should they rather be weaved with an AspectJ async execution aspect?
60+
61+
AspectJ weaving requires spring-aspects.jar on the classpath,
62+
as well as load-time weaving (or compile-time weaving) enabled.
63+
64+
Note: The weaving-based aspect requires the @Async annotation to be
65+
defined on the concrete class. Annotations in interfaces will not work
66+
in that case (they will rather only work with interface-based proxies)!
67+
]]></xsd:documentation>
68+
</xsd:annotation>
69+
<xsd:simpleType>
70+
<xsd:restriction base="xsd:string">
71+
<xsd:enumeration value="proxy"/>
72+
<xsd:enumeration value="aspectj"/>
73+
</xsd:restriction>
74+
</xsd:simpleType>
75+
</xsd:attribute>
76+
<xsd:attribute name="proxy-target-class" type="xsd:boolean" default="false">
77+
<xsd:annotation>
78+
<xsd:documentation><![CDATA[
79+
Are class-based (CGLIB) proxies to be created? By default, standard
80+
Java interface-based proxies are created.
81+
82+
Note: Class-based proxies require the @Async annotation to be defined
83+
on the concrete class. Annotations in interfaces will not work in
84+
that case (they will rather only work with interface-based proxies)!
85+
]]></xsd:documentation>
86+
</xsd:annotation>
87+
</xsd:attribute>
5588
</xsd:complexType>
5689
</xsd:element>
5790

0 commit comments

Comments
 (0)