April 05
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          2
Spring AOP – Example
nApplicationContext ctx = new
nClassPathXmlApplicationContext("ioc/applicationContext.xml");
n
n  WeatherService ws = (WeatherService)ctx.getBean("AOPTest");
n
n  Double high = ws.getHistoricalHigh(new 
n                   GregorianCalendar(2004, 0, 1).getTime());
n  System.out.println("High was test: " + high);