forked from dunwu/spring-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
357 changed files
with
30,223 additions
and
29,209 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
spring-examples/spring-examples-core/spring-examples-core-aop/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 23 additions & 23 deletions
46
...core/spring-examples-core-aop/src/main/java/io/github/dunwu/spring/core/aop/Audience.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
package io.github.dunwu.spring.core.aop; | ||
|
||
import org.aspectj.lang.annotation.*; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
@Aspect | ||
public class Audience { | ||
|
||
@Pointcut("execution(* io.github.dunwu.spring.core.aop.Instrumentalist.perform(..))") | ||
public void performance() {} | ||
|
||
@Before("performance()") | ||
public void takeSeats() { | ||
System.out.println("takeSeats()"); | ||
} | ||
|
||
@Before("performance()") | ||
public void turnOffCellPhones() { | ||
System.out.println("turnOffCellPhones()"); | ||
} | ||
|
||
@AfterReturning("performance()") | ||
public void applaud() { | ||
System.out.println("applaud()"); | ||
} | ||
|
||
@AfterThrowing("performance()") | ||
public void demandRefund() { | ||
System.out.println("demandRefund()"); | ||
} | ||
@Pointcut("execution(* io.github.dunwu.spring.core.aop.Instrumentalist.perform(..))") | ||
public void performance() { | ||
} | ||
|
||
@Before("performance()") | ||
public void takeSeats() { | ||
System.out.println("takeSeats()"); | ||
} | ||
|
||
@Before("performance()") | ||
public void turnOffCellPhones() { | ||
System.out.println("turnOffCellPhones()"); | ||
} | ||
|
||
@AfterReturning("performance()") | ||
public void applaud() { | ||
System.out.println("applaud()"); | ||
} | ||
|
||
@AfterThrowing("performance()") | ||
public void demandRefund() { | ||
System.out.println("demandRefund()"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...ore/spring-examples-core-aop/src/main/java/io/github/dunwu/spring/core/aop/Performer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package io.github.dunwu.spring.core.aop; | ||
|
||
public interface Performer { | ||
String perform(); | ||
|
||
String perform(); | ||
|
||
} |
4 changes: 2 additions & 2 deletions
4
...-examples/spring-examples-core/spring-examples-core-aop/src/main/resources/spring-aop.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
spring-examples/spring-examples-core/spring-examples-core-ioc/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.