Reduce unnecessary use of aspectj as a build dependency

This commit is contained in:
Luke Taylor 2010-08-19 23:23:03 +01:00
parent c37ca1c2a9
commit 102bc2d6a0
4 changed files with 1 additions and 9 deletions

View File

@ -14,8 +14,7 @@ dependencies {
"org.springframework:spring-jdbc:$springVersion",
"org.springframework:spring-tx:$springVersion",
"org.springframework:spring-web:$springVersion",
"org.springframework:spring-webmvc:$springVersion",
"org.aspectj:aspectjrt:$aspectjVersion"
"org.springframework:spring-webmvc:$springVersion"
runtime project(':spring-security-web'),
project(':spring-security-config'),

View File

@ -1,15 +1,10 @@
package bigbank;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.util.Assert;
public class BankServiceImpl implements BankService {
private final BankDao bankDao;
// Not used unless you declare a <protect-pointcut>
@Pointcut("execution(* bigbank.BankServiceImpl.*(..))")
public void myPointcut() {}
public BankServiceImpl(BankDao bankDao) {
Assert.notNull(bankDao);
this.bankDao = bankDao;

View File

@ -10,7 +10,6 @@ dependencies {
"org.springframework:spring-beans:$springVersion",
"org.springframework:spring-web:$springVersion",
"org.springframework:spring-webmvc:$springVersion",
"org.aspectj:aspectjrt:$aspectjVersion",
"org.slf4j:slf4j-api:$slf4jVersion"
runtime project(':spring-security-web'),

View File

@ -3,7 +3,6 @@
dependencies {
compile project(':spring-security-core'),
'aopalliance:aopalliance:1.0',
"org.aspectj:aspectjweaver:$aspectjVersion",
"org.springframework:spring-aop:$springVersion",
"org.springframework:spring-beans:$springVersion",
"org.springframework:spring-context:$springVersion",