samples/componentinjection/anagram-modular/src-app-lookup/org/apidesign/anagram/app/lookup/Main.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 20 Jun 2009 16:06:19 +0200
changeset 336 219810ff3c72
parent 231 e3ff8d81f386
permissions -rw-r--r--
Example of "compile time caches" and their possible usage in Component Injection area
jtulach@229
     1
package org.apidesign.anagram.app.lookup;
jtulach@229
     2
jtulach@229
     3
import org.apidesign.anagram.api.UI;
jtulach@229
     4
jtulach@229
     5
public final class Main {
jtulach@229
     6
    private Main() { }
jtulach@229
     7
    
jtulach@229
     8
    public static void main(String[] args) throws Exception {
jtulach@336
     9
        // BEGIN: anagram.words.annotation.layersetup
jtulach@336
    10
        System.setProperty("org.openide.util.Lookup.paths", "Services");
jtulach@336
    11
        // END: anagram.words.annotation.layersetup
jtulach@336
    12
jtulach@229
    13
        UI ui = new AnagramsWithLookup();
jtulach@229
    14
        ui.display();
jtulach@229
    15
    }
jtulach@229
    16
}