01: /**************************************************************************************
02: * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
03: * http://aspectwerkz.codehaus.org *
04: * ---------------------------------------------------------------------------------- *
05: * The software in this package is published under the terms of the LGPL license *
06: * a copy of which has been included with this distribution in the license.txt file. *
07: **************************************************************************************/package examples.introduction;
08:
09: /**
10: * @Annotation
11: * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a>
12: */
13: public class Target {
14: public static void main(String[] args) {
15: Target target = new Target();
16: System.out.println("The mixin says: "
17: + ((Mixin) target).sayHello1());
18: System.out.println("The mixin says: "
19: + ((Mixin) target).sayHello2());
20: Target target2 = new Target();
21: System.out.println("The mixin says: "
22: + ((Mixin) target2).sayHello1());
23: System.out.println("The mixin says: "
24: + ((Mixin) target2).sayHello2());
25: }
26: }
|