Create all controlled components with an event bus.
[sonitus.git] / src / main / java / net / pterodactylus / sonitus / data / filter / ExternalFilter.java
index 72c6177..a6e2966 100644 (file)
@@ -27,6 +27,7 @@ import net.pterodactylus.sonitus.io.InputStreamDrainer;
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
+import com.google.common.eventbus.EventBus;
 
 /**
  * {@link net.pterodactylus.sonitus.data.Filter} implementation that runs its
@@ -42,6 +43,18 @@ public abstract class ExternalFilter extends DummyFilter {
        /** The external process. */
        private Process process;
 
+       /**
+        * Creates a new external filter with the given name.
+        *
+        * @param eventBus
+        *              The event bus
+        * @param name
+        *              The name of the filter
+        */
+       protected ExternalFilter(EventBus eventBus, String name) {
+               super(eventBus, name);
+       }
+
        //
        // FILTER METHODS
        //