1 18 19 package org.objectweb.jac.samples.calcul; 20 21 import org.objectweb.jac.core.*; 22 23 public class UserDefinedAC extends AspectComponent { 24 25 protected UserDefinedWrapper wrapper = null; 26 27 public void whenUsingNewInstance(Interaction interaction) { 28 29 System.out.println( "When using new instance -- " + 30 interaction.wrappee.getClass() ); 31 32 42 51 } 52 53 public void whenNewInstance( Wrappee newInstance ) { 54 System.out.println( "When new instance -- " + newInstance.getClass() ); 55 } 56 } 57 58 59 60 61 62 63 64 | Popular Tags |