@@ -0,0 +1,8 @@
+package trigger.kafka.matcher;
+
+public interface DependencyMatcher {
+  /**
+   * Determine whether the dependency condition is match.
+   */
+  public boolean isMatch(String payload, String rule);
+}
Please convert rule's type from string to pattern for stronger type.