0
|
1 package nabble.modules.workgroup;
|
|
2
|
|
3 import fschmidt.util.java.FutureValue;
|
|
4 import nabble.naml.compiler.Module;
|
|
5 import nabble.naml.compiler.Source;
|
|
6 import nabble.modules.ModuleManager;
|
|
7
|
|
8 import java.util.Arrays;
|
|
9 import java.util.Collection;
|
|
10 import java.util.Collections;
|
|
11 import java.util.Set;
|
|
12
|
|
13
|
|
14 public enum WorkgroupModule implements Module {
|
|
15 INSTANCE;
|
|
16
|
|
17 private static final Iterable<Class> extensions = Arrays.<Class>asList(
|
|
18 NodeNamespaceExt.class
|
|
19 );
|
|
20
|
|
21 private final FutureValue<Collection<Source>> sources = new FutureValue<Collection<Source>>() {
|
|
22 protected Collection<Source> compute() {
|
|
23 return ModuleManager.loadSource(WorkgroupModule.this);
|
|
24 }
|
|
25 };
|
|
26
|
|
27 public String getName() {
|
|
28 return "workgroup";
|
|
29 }
|
|
30
|
|
31 public Iterable<Class> getExtensions() {
|
|
32 return extensions;
|
|
33 }
|
|
34
|
|
35 public Collection<Source> getSources() {
|
|
36 return sources.get();
|
|
37 }
|
|
38
|
|
39 public Set<String> getDependencies() {
|
|
40 return Collections.emptySet();
|
|
41 }
|
|
42
|
|
43 static {
|
|
44 Assignment.init();
|
|
45 }
|
|
46
|
|
47 }
|