[
https://issues.apache.org/jira/browse/FELIX-1666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matthew Sykes reopened FELIX-1666:
----------------------------------
I dug in a little bit more. I have a delayed component defined in a bundle
with a lazy activation policy that provides a service. The component has no
references so its configuration is satisfied at the time the bundle is started.
The service for the delayed component is never registered causing dependent
components to remain unsatisfied.
This problem appears to be coming from the ComponentActivatorTask as the
following warning issued via the log service:
[21] Cannot run task 'Enable Component: com.foo.bar.ServiceComponent (20)':
Declaring bundle is not active null
Enabled, satisfied components should have their provided services registered as
a ServiceFactory when the bundle is in the LAZY_ACTIVATION state. When the
services are resolved, the deferred component should then be activated.
Thanks again.
> Missing support for DS 1.1 specified lazy activation behavior
> -------------------------------------------------------------
>
> Key: FELIX-1666
> URL: https://issues.apache.org/jira/browse/FELIX-1666
> Project: Felix
> Issue Type: Bug
> Components: Declarative Services (SCR)
> Affects Versions: scr-1.0.8
> Reporter: Matthew Sykes
> Fix For: scr-1.2.0
>
>
> While attempting to move code from the Equinox implementation of DS to the
> Felix implementation, I discovered that the Felix SCR does not seem to
> support processing and activation of component configurations that are
> declared in bundles awaiting lazy activation. The DS 1.1 specification,
> section 112.8.2 indicates that bundles awaiting lazy activation are to be
> processed when the SCR starts (and, presumedly by extension, as bundles
> bundles are starting/started).
> It appears that Felix has implemented most of the DS 1.1 support already so
> it appears this is an oversight.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.