List of usage examples for org.springframework.aop.aspectj.annotation AspectJProxyFactory AspectJProxyFactory
public AspectJProxyFactory()
From source file:com.organization.automation.project.spice.mix.aop.aspectjspring.TCProxy.java
public ITestCase transform(ITestCase tc) { aspectJFactory = new AspectJProxyFactory(); aspectJFactory.setTarget(tc);/* w w w. j av a2s . c om*/ aspectJFactory.addAspect(logAspect); aspectJFactory.setProxyTargetClass(true); aspectJFactory.setExposeProxy(true); return aspectJFactory.getProxy(); }
From source file:im.tym.wraop.impl.AspectJWrapperFactorySpi.java
public AspectJWrapperFactorySpi() { super(new AspectJProxyFactory()); }
From source file:org.springframework.aop.aspectj.annotation.AspectProxyFactoryTests.java
@Test(expected = IllegalArgumentException.class) public void testWithInstanceWithNonAspect() throws Exception { AspectJProxyFactory pf = new AspectJProxyFactory(); pf.addAspect(new TestBean()); }
From source file:org.springframework.aop.aspectj.annotation.AspectProxyFactoryTests.java
@Test(expected = IllegalArgumentException.class) public void testWithNonSingletonAspectInstance() throws Exception { AspectJProxyFactory pf = new AspectJProxyFactory(); pf.addAspect(new PerThisAspect()); }