package org.apache.maven.aspectwerkz;

import org.codehaus.aspectwerkz.attribdef.Pointcut;
import org.codehaus.aspectwerkz.attribdef.aspect.Aspect;
import org.codehaus.aspectwerkz.joinpoint.JoinPoint;

/**
 * @Aspect perJVM
 *
 * @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
 */
public class SampleAspect extends Aspect
{
    /**
     * @Execution * *..Target.someMethod1(..)
     */
    Pointcut samplePointcut;
    
    /**
     * @Around samplePointcut
     */
    public Object sampleAdvice(final JoinPoint joinPoint) throws Throwable
    {
        System.out.println("samplePointcut");
        return joinPoint.proceed(); 
    }
}
