01: package org.osbl.plugin;
02:
03: import java.util.List;
04: import java.util.Arrays;
05:
06: public class Plugin {
07: String name;
08: Plugin parent;
09: List<ExtensionPoint> extensionPoints;
10:
11: public Plugin(String name, Plugin parent,
12: List<ExtensionPoint> extensionPoints) {
13: this .name = name;
14: this .parent = parent;
15: this .extensionPoints = extensionPoints;
16: }
17:
18: public Plugin(String name, Plugin parent,
19: ExtensionPoint... extensionPoints) {
20: this .name = name;
21: this .parent = parent;
22: this .extensionPoints = Arrays.asList(extensionPoints);
23: }
24:
25: public String getName() {
26: return name;
27: }
28:
29: public Plugin getParent() {
30: return parent;
31: }
32:
33: public List<ExtensionPoint> getExtensionPoints() {
34: return extensionPoints;
35: }
36: }
|