samples/componentinjection/anagram-modular/src-api-compiletimecaches/org/apidesign/anagram/api/annotations/Words.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 20 Jun 2009 16:06:19 +0200
changeset 336 219810ff3c72
permissions -rw-r--r--
Example of "compile time caches" and their possible usage in Component Injection area
     1 /*
     2  * To change this template, choose Tools | Templates
     3  * and open the template in the editor.
     4  */
     5 
     6 package org.apidesign.anagram.api.annotations;
     7 
     8 import java.lang.annotation.ElementType;
     9 import java.lang.annotation.Retention;
    10 import java.lang.annotation.RetentionPolicy;
    11 import java.lang.annotation.Target;
    12 import org.apidesign.anagram.api.WordLibrary;
    13 
    14 /**
    15  * Annotations to mark a static method returning array of Strings with.
    16  * Such method is then treated as a provider of {@link WordLibrary}.
    17  * <p>
    18  * Its retention is set to source one, as it is
    19  * processed by associated WordsProcessor during compile time.
    20  *
    21  * @author Jaroslav Tulach <jtulach@netbeans.org>
    22  */
    23 // BEGIN: anagram.api.Words
    24 @Retention(RetentionPolicy.SOURCE)
    25 @Target(ElementType.METHOD)
    26 public @interface Words {
    27 }
    28 // END: anagram.api.Words