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
jtulach@336
     1
/*
jtulach@336
     2
 * To change this template, choose Tools | Templates
jtulach@336
     3
 * and open the template in the editor.
jtulach@336
     4
 */
jtulach@336
     5
jtulach@336
     6
package org.apidesign.anagram.api.annotations;
jtulach@336
     7
jtulach@336
     8
import java.lang.annotation.ElementType;
jtulach@336
     9
import java.lang.annotation.Retention;
jtulach@336
    10
import java.lang.annotation.RetentionPolicy;
jtulach@336
    11
import java.lang.annotation.Target;
jtulach@336
    12
import org.apidesign.anagram.api.WordLibrary;
jtulach@336
    13
jtulach@336
    14
/**
jtulach@336
    15
 * Annotations to mark a static method returning array of Strings with.
jtulach@336
    16
 * Such method is then treated as a provider of {@link WordLibrary}.
jtulach@336
    17
 * <p>
jtulach@336
    18
 * Its retention is set to source one, as it is
jtulach@336
    19
 * processed by associated WordsProcessor during compile time.
jtulach@336
    20
 *
jtulach@336
    21
 * @author Jaroslav Tulach <jtulach@netbeans.org>
jtulach@336
    22
 */
jtulach@336
    23
// BEGIN: anagram.api.Words
jtulach@336
    24
@Retention(RetentionPolicy.SOURCE)
jtulach@336
    25
@Target(ElementType.METHOD)
jtulach@336
    26
public @interface Words {
jtulach@336
    27
}
jtulach@336
    28
// END: anagram.api.Words