The EventListenerMethodProcessor currently skips beans whereisSpringContainerClass returns true. There are a few more types that we could also consider skipping:
- Anything in
java.lang classes
- Any
java.util classes
- Any
javax.servlet classes
All of these turn out to be pretty common beans in Spring Boot applications.