Merge commit '42b2e5ca519766e37ce6941ba4faecc9691cc403' into upstream
[debian/openrocket] / core / src / net / sf / openrocket / plugin / example / ExampleService.java
diff --git a/core/src/net/sf/openrocket/plugin/example/ExampleService.java b/core/src/net/sf/openrocket/plugin/example/ExampleService.java
new file mode 100644 (file)
index 0000000..8a6317b
--- /dev/null
@@ -0,0 +1,24 @@
+package net.sf.openrocket.plugin.example;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import net.sf.openrocket.plugin.framework.AbstractService;
+import net.xeoh.plugins.base.annotations.PluginImplementation;
+
+@PluginImplementation
+public class ExampleService extends AbstractService<ExamplePluginInterface> {
+       
+       protected ExampleService() {
+               super(ExamplePluginInterface.class);
+       }
+       
+       @Override
+       protected List<ExamplePluginInterface> getPlugins(Object... args) {
+               List<ExamplePluginInterface> plugins = new ArrayList<ExamplePluginInterface>();
+               plugins.add(new ExamplePlugin("a"));
+               plugins.add(new ExamplePlugin("b"));
+               return plugins;
+       }
+       
+}