I need a flexible filters for FooEvents for multiple EventListeners all over my code.
I can use @EventListener(condition=\"event.enabled\"), but my filters requ
You're using the wrong definition, as fooPredicate is a spring bean you need to use '@' instead of '#' to resolve it as a bean. see 10.5.13 Bean references
@EventListener(condition="@fooPredicate.test(#event)")
public void handle(FooEvent event) {
System.out.println();
}