Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6488

Optimize ServiceReference.isAssignableTo

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • framework-7.0.3
    • framework-7.0.6
    • Framework
    • None

    Description

      The ServiceReference.isAssignableTo(Bundle bundle, String className) does some complicated check to see if the service is assignable. This includes trying to load classes and catching CNFE to see if providers and/or requesters have access to the given class.

      As that is done quite a bit (it is used in service event dispatching and service lookup) it would be good to optimize this to either not throw CNFE during the lookup or maybe at least cache the results to not have them be done all the time.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            karlpauls Karl Pauls
            karlpauls Karl Pauls

            Dates

              Created:
              Updated:

              Slack

                Issue deployment