Scope.PER_VM,
TestAspect2.class.getName(),
"advice",
"execution(* $instanceof{" + SomeInterface.class.getName() + "}->otherWorld(..))");
AOPProxyFactoryParameters params = new AOPProxyFactoryParameters();
params.setInterfaces(new Class[] {SomeInterface.class});
params.setMixins(new AOPProxyFactoryMixin[] {
new AOPProxyFactoryMixin(OtherMixin.class, new Class[] {OtherMixinInterface.class, OtherMixinInterface2.class}, "20")
});
params.setTarget(new SerializablePOJO());
AOPProxyFactory factory = new GeneratedAOPProxyFactory();
SomeInterface si = (SomeInterface)factory.createAdvisedProxy(params);
TestAspect.invoked = false;
TestAspect2.invoked = false;