@@ -1577,7 +1577,7 @@ is controlled through the `Ordered` interface. For full details on advice orderi
1577
1577
----
1578
1578
1579
1579
[source,xml,indent=0]
1580
- [subs="verbatim,quotes "]
1580
+ [subs="verbatim"]
1581
1581
----
1582
1582
<?xml version="1.0" encoding="UTF-8"?>
1583
1583
<beans xmlns="http://www.springframework.org/schema/beans"
@@ -1597,10 +1597,10 @@ is controlled through the `Ordered` interface. For full details on advice orderi
1597
1597
<!-- this is the aspect -->
1598
1598
<bean id="profiler" class="x.y.SimpleProfiler">
1599
1599
<!-- execute before the transactional advice (hence the lower order number) -->
1600
- <property name="order" __value ="1"__ />
1600
+ <property name="order" value ="1"/>
1601
1601
</bean>
1602
1602
1603
- <tx:annotation-driven transaction-manager="txManager" __order ="200"__ />
1603
+ <tx:annotation-driven transaction-manager="txManager" order ="200"/>
1604
1604
1605
1605
<aop:config>
1606
1606
<!-- this advice will execute around the transactional advice -->
@@ -1633,7 +1633,7 @@ The following example effects the same setup as above, but uses the purely XML
1633
1633
declarative approach.
1634
1634
1635
1635
[source,xml,indent=0]
1636
- [subs="verbatim,quotes "]
1636
+ [subs="verbatim"]
1637
1637
----
1638
1638
<?xml version="1.0" encoding="UTF-8"?>
1639
1639
<beans xmlns="http://www.springframework.org/schema/beans"
@@ -1653,14 +1653,14 @@ declarative approach.
1653
1653
<!-- the profiling advice -->
1654
1654
<bean id="profiler" class="x.y.SimpleProfiler">
1655
1655
<!-- execute before the transactional advice (hence the lower order number) -->
1656
- __ <property name="order" value="1__ "/>
1656
+ <property name="order" value="1 "/>
1657
1657
</bean>
1658
1658
1659
1659
<aop:config>
1660
1660
<aop:pointcut id="entryPointMethod" expression="execution(* x.y..*Service.*(..))"/>
1661
1661
<!-- will execute after the profiling advice (c.f. the order attribute) -->
1662
1662
1663
- <aop:advisor advice-ref="txAdvice" pointcut-ref="entryPointMethod" __order="2__ "/>
1663
+ <aop:advisor advice-ref="txAdvice" pointcut-ref="entryPointMethod" order="2 "/>
1664
1664
<!-- order value is higher than the profiling aspect -->
1665
1665
1666
1666
<aop:aspect id="profilingAspect" ref="profiler">
@@ -1733,7 +1733,7 @@ follows Java's rule that annotations on interfaces are __not inherited__.
1733
1733
====
1734
1734
1735
1735
The `@Transactional` annotation on a class specifies the default transaction semantics
1736
- for the execution of any method in the class.
1736
+ for the execution of any public method in the class.
1737
1737
1738
1738
The `@Transactional` annotation on a method within the class overrides the default
1739
1739
transaction semantics given by the class annotation (if present). Any method may be
@@ -1794,7 +1794,6 @@ a transaction. You then pass an instance of your custom `TransactionCallback` to
1794
1794
1795
1795
// use constructor-injection to supply the PlatformTransactionManager
1796
1796
public SimpleService(PlatformTransactionManager transactionManager) {
1797
- Assert.notNull(transactionManager, "The 'transactionManager' argument must not be null.");
1798
1797
this.transactionTemplate = new TransactionTemplate(transactionManager);
1799
1798
}
1800
1799
@@ -1861,7 +1860,6 @@ a specific `TransactionTemplate:`
1861
1860
private final TransactionTemplate transactionTemplate;
1862
1861
1863
1862
public SimpleService(PlatformTransactionManager transactionManager) {
1864
- Assert.notNull(transactionManager, "The 'transactionManager' argument must not be null.");
1865
1863
this.transactionTemplate = new TransactionTemplate(transactionManager);
1866
1864
1867
1865
// the transaction settings can be set here explicitly if so desired
0 commit comments