/*
 * JBoss, the OpenSource J2EE webOS
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package org.jboss.test.aop.precedence;

import org.jboss.aop.joinpoint.Invocation;

/**
 *
 * @author <a href="mailto:kabir.khan@jboss.org">Kabir Khan</a>
 * @version $Revision: 1.1.8.2 $
 */
public class TestAspect
{
   public Object advice(Invocation invocation)throws Throwable
   {
      System.out.println("TestAspect.advice");
      Interceptions.add("TestAspect.advice");
      return invocation.invokeNext();

   }

   public Object advice2(Invocation invocation)throws Throwable
   {
      System.out.println("TestAspect.advice");
      Interceptions.add("TestAspect.advice2");
      return invocation.invokeNext();

   }

   public Object advice3(Invocation invocation)throws Throwable
   {
      System.out.println("TestAspect.advice");
      Interceptions.add("TestAspect.advice3");
      return invocation.invokeNext();
   }
}
