aboutsummaryrefslogtreecommitdiffstats
path: root/weaver5/java5-testsrc/CounterAspect.java
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2019-02-08 15:02:11 -0800
committerAndy Clement <aclement@pivotal.io>2019-02-08 15:02:11 -0800
commit635f0ed47ffe11e93d96e4d24e4411eedfa1ddc9 (patch)
tree2fa95e5cf13bdefa559ce341761f90de747421e9 /weaver5/java5-testsrc/CounterAspect.java
parent66f6e011d251d84250c562950f491cab31af0ad3 (diff)
downloadaspectj-635f0ed47ffe11e93d96e4d24e4411eedfa1ddc9.tar.gz
aspectj-635f0ed47ffe11e93d96e4d24e4411eedfa1ddc9.zip
tidyup retired modules and add aspectjtools submodule
Diffstat (limited to 'weaver5/java5-testsrc/CounterAspect.java')
-rw-r--r--weaver5/java5-testsrc/CounterAspect.java52
1 files changed, 0 insertions, 52 deletions
diff --git a/weaver5/java5-testsrc/CounterAspect.java b/weaver5/java5-testsrc/CounterAspect.java
deleted file mode 100644
index 1ca126d02..000000000
--- a/weaver5/java5-testsrc/CounterAspect.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/* *******************************************************************
- * Copyright (c) 2008 Contributors.
- * All rights reserved.
- * This program and the accompanying materials are made available
- * under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution and is available at
- * http://eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Andy Clement initial implementation
- * ******************************************************************/
-import org.aspectj.lang.annotation.Aspect;
-import org.aspectj.lang.annotation.Before;
-import org.aspectj.lang.annotation.Pointcut;
-
-/**
- * Created to enable PointcutDesignatorHandlerTests.testParsingBeanInReferencePointcut01 and 02 to run
- *
- * @author Andy Clement
- */
-@Aspect
-public class CounterAspect {
-
- int count;
-
- @Before("execution(* set*(..)) && bean(testBean1)")
- public void increment1ForAnonymousPointcut() {
- count++;
- }
-
- @Pointcut("execution(* toString(..)) && bean(testBean1)")
- public void testBean1toString() {
- }
-
- @Pointcut("execution(* setAge(..)) && bean(testBean1)")
- public void testBean1SetAge() {
- }
-
- @Pointcut("execution(* setAge(..)) && bean(testBean2)")
- public void testBean2SetAge() {
- }
-
- @Before("testBean1SetAge()")
- public void increment1() {
- count++;
- }
-
- @Before("testBean2SetAge()")
- public void increment2() {
- count++;
- }
-} \ No newline at end of file