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

Integrate SCR with Felix

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • framework-0.8.0
    • scr-1.0.0
    • None
    • org.apache.felix.scr project, Rev. 427625

    Description

      Currently any bundle wanting to contribute components has to implement an Activator extending the GenericActivator (or refer to the GenericActivator in
      the Manifest.MF. Additionally start/stop semantics of the SCR bundle are not implemented.

      Attached is a patch, which enhances the current Activator class as follows:

      • On start load components of active bundles
      • On stop unload all loaded components
      • listen for bundle state changes to load/unload components:
      • on BundleEvent.STARTED: Components are loaded
      • on BundleEvent.STOPPING: Components are unloaded

      The BundleContext instance needed to load the Components is retrieved using the BundleImpl.getContext() method, which is accessed through reflection on the bundle instance.

      As a consequence of this patch, the GenericActivator class may be rebuilt into a proper component loader and need not be used as an activator for component bundles.

      Attachments

        Activity

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

          People

            rickhall Richard S. Hall
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment