Skip to content

Commit e8f7781

Browse files
authored
Merge branch 'master' into patch-1
2 parents af4ea07 + 07283da commit e8f7781

File tree

11 files changed

+15
-11
lines changed

11 files changed

+15
-11
lines changed

Contributing.adoc

+7
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,10 @@ Copyright for Apress source code belongs to the author(s). However, under fair u
1212
* Submit a pull request.
1313

1414
Thank you for your contribution!
15+
16+
== Current list of contributors
17+
18+
The list below contains the list of people that have found errors in the previous edition of the book and submitted them to the author and made sure the second edition was better.
19+
20+
* https://github.com/rafalnowicki116[Rafal Nowicki]
21+
* https://github.com/Affid[Affid Fedorov]
374 KB
Binary file not shown.

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ ext {
144144
castor : "org.codehaus.castor:castor-xml:$castorVersion",
145145
jacksonDatabind: "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion",
146146
poi : "org.apache.poi:poi:$poiVersion",
147-
io : "commons-io:commons-io:2.5",
147+
io : "commons-io:commons-io:2.7",
148148
]
149149

150150
web = [

chapter04/disposable-bean/src/main/java/com/apress/prospring5/ch4/DestructiveBeanWithInterface.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static void main(String... args) throws Exception {
4949
(DestructiveBeanWithInterface) ctx.getBean("destructiveBean");
5050

5151
System.out.println("Calling destroy()");
52-
ctx.destroy();
52+
ctx.close();
5353
System.out.println("Called destroy()");
5454
}
5555
}

chapter04/initializing-bean-destroy/src/main/java/com/apress/prospring5/ch4/DestructiveBean.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static void main(String... args) throws Exception {
4444
DestructiveBean bean = (DestructiveBean) ctx.getBean("destructiveBean");
4545

4646
System.out.println("Calling destroy()");
47-
ctx.destroy();
47+
ctx.close();
4848
System.out.println("Called destroy()");
4949
}
5050
}

chapter04/post-construct-pre-destroy/src/main/java/com/apress/prospring5/ch4/DestructiveBeanWithJSR250.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static void main(String... args) throws Exception {
4949
(DestructiveBeanWithJSR250) ctx.getBean("destructiveBean");
5050

5151
System.out.println("Calling destroy()");
52-
ctx.destroy();
52+
ctx.close();
5353
System.out.println("Called destroy()");
5454
}
5555
}

chapter05-aspectj-aspects/README.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=== How to build
22

33
Use Gradle 4.0 to build this project. The gradle-aspectj is compatible only with this version of Gradle and
4-
an alternative plugin to support compiling of of AspectJ files (with aj extension" is not available at teh moment.
4+
an alternative plugin to support compiling of of AspectJ files (with "aj" extension is not available at the moment).
55

66
Since AspectJ files support with Spring will not be in future versions of this book, this module will be removed altogether.
77

chapter05/simple-name-matching/src/main/java/com/apress/prospring5/ch5/NamePointcutUsingAdvisor.java

-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package com.apress.prospring5.ch5;
22

33
import com.apress.prospring5.ch2.common.Guitar;
4-
import org.springframework.aop.Advisor;
54
import org.springframework.aop.framework.ProxyFactory;
6-
import org.springframework.aop.support.NameMatchMethodPointcut;
75
import org.springframework.aop.support.NameMatchMethodPointcutAdvisor;
86

97
/**

chapter05/simple-throws-advice/src/main/java/com/apress/prospring5/ch5/SimpleThrowsAdvice.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ public void afterThrowing(Exception ex) throws Throwable {
3535
System.out.println("***\n");
3636
}
3737

38-
public void afterThrowing(Method method, Object[] args, Object target,
39-
IllegalArgumentException ex) throws Throwable {
38+
public void afterThrowing(Method method, Object[] args, Object target, IllegalArgumentException ex) throws Throwable {
4039
System.out.println("***");
4140
System.out.println("IllegalArgumentException Capture");
4241
System.out.println("Caught: " + ex.getClass().getName());

chapter18/batch-jsr352/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<spring.framework.version>4.0.2.RELEASE</spring.framework.version>
1414
<spring.batch.version>3.0.1.RELEASE</spring.batch.version>
1515
<commons.dbcp.version>1.4</commons.dbcp.version>
16-
<commons.io.version>2.4</commons.io.version>
16+
<commons.io.version>2.7</commons.io.version>
1717
<log4j.version>1.2.17</log4j.version>
1818
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1919
<hsqldb.version>2.3.1</hsqldb.version>

chapter18/batch/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<spring.framework.version>4.0.2.RELEASE</spring.framework.version>
1414
<spring.batch.version>3.0.1.RELEASE</spring.batch.version>
1515
<commons.dbcp.version>1.4</commons.dbcp.version>
16-
<commons.io.version>2.4</commons.io.version>
16+
<commons.io.version>2.7</commons.io.version>
1717
<h2.version>1.3.172</h2.version>
1818
<log4j.version>1.2.17</log4j.version>
1919
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

0 commit comments

Comments
 (0)