blob: 842cf44bb0b8a7806b50b61e0bfd3de3149cb0d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*******************************************************************************
* Copyright (c) 2005 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v 2.0
* which accompanies this distribution and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
*
* Contributors:
* Alexandre Vasseur initial implementation
*******************************************************************************/
package ataspectj.ltwreweavable;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
/**
* Contributed by David Knibb
* @author <a href="mailto:alex AT gnilux DOT com">Alexandre Vasseur</a>
*/
@Aspect
public class AspectReweavableLogging {
@Before("execution(void ataspectj.ltwreweavable.MainReweavableLogging.test1()) && this(a)")
public void before(Advisable a, JoinPoint thisJoinPoint) {
System.err.println(thisJoinPoint);
a.addJoinPoint(thisJoinPoint.getSignature().getName());
}
}
|