Skip to content

Skip more classes when processing beans in EventListenerMethodProcessor #22564

Closed

Description

@philwebb

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.

Activity

  1. added
    status: waiting-for-triage
    on Mar 11, 2019
  2. philwebb commented on Mar 12, 2019

    @philwebb
    MemberAuthor

    This may have been superseded by e3a9826 which by default will skip java* types.

  3. added
    in: core
    on Mar 12, 2019
  4. self-assigned this
    on Mar 12, 2019
  5. added
    type: enhancement
    and removed
    status: waiting-for-triage
    on Mar 12, 2019
  6. added this to the 5.1.6 milestone on Mar 12, 2019
  7. jhoeller commented on Mar 12, 2019

    @jhoeller
    Contributor

    I'll consider this for a backport to 5.1.6, even if it is generally covered on master already.

  8. added a commit that references this issue on Mar 13, 2019
    88049e9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: coretype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions