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 ReusableAspect extends Aspect
{
    /**
     * @Execution * *..Target.someMethod*(..)
     */
    Pointcut reusablePointcut;
    
    /**
     * @Around reusablePointcut
     */
    public Object reusableAdvice(final JoinPoint joinPoint) throws Throwable
    {
        System.out.println("reusablePointcut");
        return joinPoint.proceed(); 
    }
}
