samples/componentinjection/anagram-modular/src-api-compiletimecaches/org/apidesign/anagram/impl/annotations/WordsImpl.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 30 Oct 2014 21:30:10 +0100
changeset 409 40cabcdcd2be
permissions -rw-r--r--
Updating to NBMs from NetBeans 8.0.1 as some of them are required to run on JDK8
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.impl.annotations;
jtulach@336
     7
jtulach@336
     8
import java.util.Map;
jtulach@336
     9
import org.apidesign.anagram.api.WordLibrary;
jtulach@336
    10
jtulach@336
    11
/**
jtulach@336
    12
 *
jtulach@336
    13
 * @author Jaroslav Tulach <jtulach@netbeans.org>
jtulach@336
    14
 */
jtulach@336
    15
// BEGIN: anagram.api.WordsImpl
jtulach@336
    16
public class WordsImpl implements WordLibrary {
jtulach@336
    17
    private Map<String,Object> map;
jtulach@336
    18
jtulach@336
    19
    private WordsImpl(Map<String,Object> m) {
jtulach@336
    20
        this.map = m;
jtulach@336
    21
    }
jtulach@336
    22
jtulach@336
    23
    public static WordsImpl create(Map attributes) {
jtulach@336
    24
        return new WordsImpl(attributes);
jtulach@336
    25
    }
jtulach@336
    26
jtulach@336
    27
    public String[] getWords() {
jtulach@336
    28
        return (String[])map.get("words"); // NOI18N
jtulach@336
    29
    }
jtulach@336
    30
}
jtulach@336
    31
// END: anagram.api.WordsImpl