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

package aspectspringtest;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 *
 * @author dhaval
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("/aspectspringtest/spring.xml");
        CreditService service = (CreditService) ctx.getBean("creditService");
        service.doCredit("dhaval", 10000);
    }

}
