author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Thu, 30 Oct 2014 21:30:10 +0100 | |
changeset 409 | 40cabcdcd2be |
permissions | -rw-r--r-- |
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 |