samples/componentinjection/anagram-modular/src-word-annotated/org/apidesign/anagram/wordannotated/WordsFactory.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 package org.apidesign.anagram.wordannotated;
     3 
     4 import org.apidesign.anagram.api.annotations.Words;
     5 
     6 // BEGIN: anagram.words.annotation.usage
     7 public class WordsFactory {
     8     @Words
     9     public static String[] myWords() {
    10         return new String[] {
    11             "microprocessor",
    12             "navigation",
    13             "optimization",
    14             "parameter",
    15             "patrick",
    16         };
    17     }
    18 }
    19 // END: anagram.words.annotation.usage