KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > examples > introduction > Target


1 /**************************************************************************************
2  * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
3  * http://aspectwerkz.codehaus.org *
4  * ---------------------------------------------------------------------------------- *
5  * The software in this package is published under the terms of the LGPL license *
6  * a copy of which has been included with this distribution in the license.txt file. *
7  **************************************************************************************/

8 package examples.introduction;
9
10 /**
11  * @Annotation
12  * @author <a HREF="mailto:jboner@codehaus.org">Jonas BonŽr </a>
13  */

14 public class Target {
15     public static void main(String JavaDoc[] args) {
16         Target target = new Target();
17         System.out.println("The mixin says: " + ((Mixin) target).sayHello1());
18         System.out.println("The mixin says: " + ((Mixin) target).sayHello2());
19         Target target2 = new Target();
20         System.out.println("The mixin says: " + ((Mixin) target2).sayHello1());
21         System.out.println("The mixin says: " + ((Mixin) target2).sayHello2());
22     }
23 }
Popular Tags