You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Jeremy Volkman (JIRA)" <ji...@apache.org> on 2007/08/14 12:47:30 UTC

[jira] Created: (FELIX-337) Immediate components are registered as delayed

Immediate components are registered as delayed
----------------------------------------------

                 Key: FELIX-337
                 URL: https://issues.apache.org/jira/browse/FELIX-337
             Project: Felix
          Issue Type: Bug
          Components: Declarative Services
    Affects Versions: 0.8.0, 1.0.0
            Reporter: Jeremy Volkman
            Priority: Critical


DS doesn't properly detect implicit immediate components (components with no "immediate" attribute and no service registrations). 

>From the spec, section 112.2.2:

"A component is an immediate component if it is not a factory
component and either does not specify a service or specifies a service
and the immediate attribute of the component element set to true."

Currently, a component defaults to 'immediate="false"', and the only way to change this value is to explicitly define it in the component description.

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


[jira] Commented: (FELIX-337) Immediate components are registered as delayed

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519645 ] 

Felix Meschberger commented on FELIX-337:
-----------------------------------------

Updated the ComponentMetadata class as follows:

1.  m_immediate is now Boolean to support tri-state: undefined, true and false. The latter two are only set if the immediate attribute is set in the descriptor. Otherwise the immediate status of the component is deduced from the presence of a ServiceMetadata (hence a service element in the descriptor.

2. In addition I added a check to ensure, the immediate element is set to "true" (if actually set in the descriptor) if no service element is defined. According to the spec: "If [the immediate attribute] is specified, its value must be true unless the service element is specified" (Section 112.4.3).

Fixed in Rev. 565708.

Finally, I also deployed a new snapshot

> Immediate components are registered as delayed
> ----------------------------------------------
>
>                 Key: FELIX-337
>                 URL: https://issues.apache.org/jira/browse/FELIX-337
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services
>    Affects Versions: 0.8.0, 1.0.0
>            Reporter: Jeremy Volkman
>            Assignee: Felix Meschberger
>            Priority: Critical
>             Fix For: 1.0.0
>
>
> DS doesn't properly detect implicit immediate components (components with no "immediate" attribute and no service registrations). 
> From the spec, section 112.2.2:
> "A component is an immediate component if it is not a factory
> component and either does not specify a service or specifies a service
> and the immediate attribute of the component element set to true."
> Currently, a component defaults to 'immediate="false"', and the only way to change this value is to explicitly define it in the component description.

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


[jira] Resolved: (FELIX-337) Immediate components are registered as delayed

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger resolved FELIX-337.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.0

Fixed, please close if you can confirm.

> Immediate components are registered as delayed
> ----------------------------------------------
>
>                 Key: FELIX-337
>                 URL: https://issues.apache.org/jira/browse/FELIX-337
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services
>    Affects Versions: 0.8.0, 1.0.0
>            Reporter: Jeremy Volkman
>            Assignee: Felix Meschberger
>            Priority: Critical
>             Fix For: 1.0.0
>
>
> DS doesn't properly detect implicit immediate components (components with no "immediate" attribute and no service registrations). 
> From the spec, section 112.2.2:
> "A component is an immediate component if it is not a factory
> component and either does not specify a service or specifies a service
> and the immediate attribute of the component element set to true."
> Currently, a component defaults to 'immediate="false"', and the only way to change this value is to explicitly define it in the component description.

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


[jira] Assigned: (FELIX-337) Immediate components are registered as delayed

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger reassigned FELIX-337:
---------------------------------------

    Assignee: Felix Meschberger

> Immediate components are registered as delayed
> ----------------------------------------------
>
>                 Key: FELIX-337
>                 URL: https://issues.apache.org/jira/browse/FELIX-337
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services
>    Affects Versions: 0.8.0, 1.0.0
>            Reporter: Jeremy Volkman
>            Assignee: Felix Meschberger
>            Priority: Critical
>
> DS doesn't properly detect implicit immediate components (components with no "immediate" attribute and no service registrations). 
> From the spec, section 112.2.2:
> "A component is an immediate component if it is not a factory
> component and either does not specify a service or specifies a service
> and the immediate attribute of the component element set to true."
> Currently, a component defaults to 'immediate="false"', and the only way to change this value is to explicitly define it in the component description.

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


[jira] Updated: (FELIX-337) Immediate components are registered as delayed

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger updated FELIX-337:
------------------------------------

    Fix Version/s:     (was: felix-1.0.0)
                   scr-1.0.0

> Immediate components are registered as delayed
> ----------------------------------------------
>
>                 Key: FELIX-337
>                 URL: https://issues.apache.org/jira/browse/FELIX-337
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>    Affects Versions: felix-0.8.0, felix-1.0.0
>            Reporter: Jeremy Volkman
>            Assignee: Felix Meschberger
>            Priority: Critical
>             Fix For: scr-1.0.0
>
>
> DS doesn't properly detect implicit immediate components (components with no "immediate" attribute and no service registrations). 
> From the spec, section 112.2.2:
> "A component is an immediate component if it is not a factory
> component and either does not specify a service or specifies a service
> and the immediate attribute of the component element set to true."
> Currently, a component defaults to 'immediate="false"', and the only way to change this value is to explicitly define it in the component description.

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