| import org.aspectj.lang.annotation.Aspect; |
| import org.aspectj.lang.annotation.Before; |
| |
| /******************************************************************************* |
| * Copyright (c) 2004 IBM Corporation and others. |
| * 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://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Luzius Meisser - initial implementation |
| *******************************************************************************/ |
| |
| |
| |
| /** |
| * |
| * @author Luzius Meisser |
| */ |
| @Aspect |
| public class A { |
| @Before("execution(void foo())") |
| public void before() { |
| |
| } |
| |
| void foo() { |
| |
| } |
| } |