1 package examples.introduction; 2 3 import org.codehaus.aspectwerkz.AspectContext; 4 5 import java.io.Serializable ; 6 7 10 public class IntroductionAspect extends AbstractIntroductionAspect { 11 12 15 public Serializable serializable; 16 17 20 public static class MyConcreteImpl extends MyImpl { 21 22 25 private final Object m_target; 26 27 30 public MyConcreteImpl(final Object target) { 31 m_target = target; 32 System.out.println("--Accessing mixin target instance from the mixin <init>..."); 33 System.out.println("-- I am introduced to " + target); 34 sayHello2(); 35 System.out.println("--..<init> done"); 36 } 37 38 public String sayHello2() { 39 return "Hello World! Hello World!"; 40 } 41 } 42 } | Popular Tags |