felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (FELIX-132) Integrate SCR with Felix
Date Wed, 06 Sep 2006 19:03:22 GMT
     [ http://issues.apache.org/jira/browse/FELIX-132?page=all ]

Richard S. Hall resolved FELIX-132.

    Resolution: Fixed
      Assignee: Richard S. Hall

This patch has been applied.

What would be excellent now is to eliminate the GenericActivator completely, which would bring
SCR more in line with the spec.

> Integrate SCR with Felix
> ------------------------
>                 Key: FELIX-132
>                 URL: http://issues.apache.org/jira/browse/FELIX-132
>             Project: Felix
>          Issue Type: Improvement
>          Components: Declarative Services
>    Affects Versions: 0.8.0
>         Environment: org.apache.felix.scr project, Rev. 427625
>            Reporter: Felix Meschberger
>         Assigned To: Richard S. Hall
>         Attachments: SCR_Activator_fm20060830.diff, SCR_Activator_fm20060906.diff
> 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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message