Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-1716

Investigate callback blacklisting for incompatible entity types

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Sprint:
      Neumann RC1, 2020.0.0 - Ockham M1, 2020.0.0 - Ockham RC2

      Description

      Entity callbacks defined as lambda expression do not expose any generic typing that could be used for filtering therefore EntityCallbacks attempts invoking a callback and backs off if the call fails with a ClassCastException. Retrievals of multiple objects (e.g. findAll) may lead to performance degradation as each lambda-callback may fail for incompatible types.

      We should investigate whether we can blacklist callbacks that are known to reject a particular entity type to bypass the invocation attempt.

        Attachments

          Activity

            People

            Assignee:
            mp911de Mark Paluch
            Reporter:
            mp911de Mark Paluch
            Last updater:
            Christoph Strobl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: