You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2008/05/30 20:16:45 UTC
[jira] Updated: (FELIX-132) Integrate SCR with Felix
[ https://issues.apache.org/jira/browse/FELIX-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger updated FELIX-132:
------------------------------------
Fix Version/s: scr-1.0.0
> Integrate SCR with Felix
> ------------------------
>
> Key: FELIX-132
> URL: https://issues.apache.org/jira/browse/FELIX-132
> Project: Felix
> Issue Type: Improvement
> Components: Declarative Services (SCR)
> Affects Versions: felix-0.8.0
> Environment: org.apache.felix.scr project, Rev. 427625
> Reporter: Felix Meschberger
> Assignee: Richard S. Hall
> Fix For: scr-1.0.0
>
> 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.
-
You can reply to this email to add a comment to the issue online.