1 22 package org.jboss.test.aop.jdk15.annotated; 23 24 import org.jboss.aop.Mixin; 25 import org.jboss.aop.Introduction; 26 import org.jboss.aop.Aspect; 27 32 @Aspect (scope=org.jboss.aop.advice.Scope.PER_VM) 33 public class IntroductionAspect 34 { 35 @Mixin (target=org.jboss.test.aop.jdk15.annotated.NoInterfacesPOJO.class, interfaces={java.io.Externalizable .class}) 36 public static ExternalizableMixin createExternalizableMixin(NoInterfacesPOJO pojo) { 37 return new ExternalizableMixin(pojo); 38 } 39 40 @Introduction (target=org.jboss.test.aop.jdk15.annotated.NoInterfacesPOJO.class, interfaces={org.jboss.test.aop.jdk15.annotated.EmptyInterface.class}) 41 public static Object noInterfacesPOJOIntro; 42 43 @Mixin (typeExpression="has(* *->pojoInterfaces2Method(..))", interfaces={java.io.Externalizable .class}, isTransient=false) 44 public static ExternalizableMixin createExternalizableMixin2(NoInterfacesPOJO pojo) { 45 return new ExternalizableMixin(pojo); 46 } 47 48 @Introduction (typeExpression="has(* *->pojoInterfaces2Method(..))", interfaces={org.jboss.test.aop.jdk15.annotated.EmptyInterface.class}) 49 public static Object noInterfacesPOJO2Intro; 50 51 } 52 | Popular Tags |