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 test.annotation;
08:
09: import java.lang.annotation.Retention;
10: import java.lang.annotation.RetentionPolicy;
11:
12: /**
13: * @author <a href="mailto:alex AT gnilux DOT com">Alexandre Vasseur</a>
14: */
15: @Retention(RetentionPolicy.RUNTIME)
16: public @interface DefaultedAnnotation {
17:
18: public String s() default "default";
19:
20: public int[] is() default { 1, 2 };
21:
22: public Class klass() default ReferencedClass.class;
23:
24: public Class[] klass2() default { ReferencedClass[].class,
25: ReferencedClass.class };
26:
27: public NestedDefaultedAnnotation nested() default @NestedDefaultedAnnotation(s="default_const");
28:
29: public NestedDefaultedAnnotation nested2() default @NestedDefaultedAnnotation;
30:
31: static @interface NestedDefaultedAnnotation {
32: public String s() default "default_nested";
33: }
34:
35: }
|