1,
Scope.PER_VM,
SimpleMetaDataInterceptor.class.getName(),
"execution(* $instanceof{" + SomeInterface.class.getName() + "}->helloWorld(..))");
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")
});
SimpleMetaData data = new SimpleMetaData();
data.addMetaData("TEST", "value", "metadata");
params.setSimpleMetaData(data);
params.setTarget(new SerializablePOJO());
AOPProxyFactory factory = new GeneratedAOPProxyFactory();
SomeInterface si = (SomeInterface)factory.createAdvisedProxy(params);
SimpleMetaDataInterceptor.data = null;
si.helloWorld();