samples/componentinjection/anagram-modular/src-api-compiletimecaches/org/apidesign/anagram/api/annotations/Words.java
Example of "compile time caches" and their possible usage in Component Injection area
2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
6 package org.apidesign.anagram.api.annotations;
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;
15 * Annotations to mark a static method returning array of Strings with.
16 * Such method is then treated as a provider of {@link WordLibrary}.
18 * Its retention is set to source one, as it is
19 * processed by associated WordsProcessor during compile time.
21 * @author Jaroslav Tulach <jtulach@netbeans.org>
23 // BEGIN: anagram.api.Words
24 @Retention(RetentionPolicy.SOURCE)
25 @Target(ElementType.METHOD)
26 public @interface Words {
28 // END: anagram.api.Words