List of usage examples for org.springframework.aop.aspectj.annotation AspectJProxyFactory addAdvice
@Override public void addAdvice(Advice advice) throws AopConfigException
From source file:org.dspace.app.cris.discovery.CrisSearchService.java
@Override protected void buildDocument(Context context, Item item) throws SQLException, IOException { AspectJProxyFactory pf = new AspectJProxyFactory(item); pf.setProxyTargetClass(true);//w w w. j a v a 2 s. c o m pf.addAdvice(new CrisItemWrapper()); // ProxyFactory pf = new ProxyFactory(item); super.buildDocument(context, (Item) pf.getProxy()); }