/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package aspects;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

/**
 *
 * @author dhaval
 */
@Aspect
public class LoggingAspect {

    @Before("execution (* aspectspringtest.Credit*.*(String, int)) and args(name, amount)")
    public void logCreadit(String name, int amount){
        System.out.println(String.format("logging credit of %1$s for %2$s", name, amount));
    }
}
