felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-593) Fix handling of immedaite attribute of component factories
Date Tue, 03 Jun 2008 08:02:45 GMT

    [ https://issues.apache.org/jira/browse/FELIX-593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601853#action_12601853
] 

Felix Meschberger commented on FELIX-593:
-----------------------------------------

Implemented this change in the scr (Declarative Service) module in Rev. 662680 and deployed
new SNAPSHOT version 1.0.1-20080603.075917-4.

This change also includes unit tests to verify validation and default values for the immediate
attribute with respect to the factory attribute, the service element and service factory attribute.

> Fix handling of immedaite attribute of component factories
> ----------------------------------------------------------
>
>                 Key: FELIX-593
>                 URL: https://issues.apache.org/jira/browse/FELIX-593
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR), Maven SCR Plugin
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: maven-scr-plugin-1.0.5, scr-1.0.1
>
>
> According to the clarification regarding the immediate attribute of the <component>
element of a Declarative services component, the validation of the component element has to
be changed.
> Currently the validation assumes this definition of the immediate attribute 112.4.3:
> "immediate - Controls whether component configurations must be immediately activated
after becoming satisfied or whether activation should be delayed. The default value is false
if the service element is specified and true otherwise. If this attribute is specified, its
value must be true unless the service element is also specified."
> which does not take into account factory components.
> A better description would be:
> "immediate - Controls whether component configurations must be immediately activated
after becoming satisfied or whether activation should be delayed. The default value is false
if the factory attribute or if the service element is specified and true otherwise. If this
attribute is specified, its value must be false if the factory attribute is also specified
or must be true unless the service element is also specified."
> This means:
> * The "scr" ComponentMetadata class must assume a different default value for the immediate
attribute for component factories and validate differently.
> * The "maven-scr-plugin" Component class must assume a different default value for the
immediate attribute for component factories and validate differently.
> [1] http://www.mail-archive.com/osgi-dev@mail.osgi.org/msg00092.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message