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 2009/02/07 12:15:02 UTC

[jira] Created: (FELIX-929) Making name attributes optional

Making name attributes optional
-------------------------------

                 Key: FELIX-929
                 URL: https://issues.apache.org/jira/browse/FELIX-929
             Project: Felix
          Issue Type: New Feature
          Components: Declarative Services (SCR)
    Affects Versions: scr-1.0.6
         Environment: OSGi RFC-0134, OSGi R4.2 Early Draft 2 (http://www.osgi.org/download/osgi-4.2-early-draft2.pdf) 
            Reporter: Felix Meschberger
             Fix For: scr-1.2.0


To reduce the amount of XML that must be written for a component description, the name attributes of the component and reference elements will be changed from required to optional. This change is only effective for documents in the new namespace.

The default value of the name attribute of the component element is the value of the class attribute of the nested implementation element.

The default value of the name attribute of the reference element is the value of the interface attribute of the reference element.


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


[jira] Commented: (FELIX-929) Making name attributes optional

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

Felix Meschberger commented on FELIX-929:
-----------------------------------------

Added declaration file support for omitting the name attributes of the component and reference elements in Rev. 784693:

Upon declaration validation, the name values are validated:

 - for DS 1.0 namespaced declaration: if not set a validation failure is thrown
 - for DS 1.1 namespaced declaration: if not set the default values as specified are assumed

Unit tests have also been added to verify this behaviour. 

> Making name attributes optional
> -------------------------------
>
>                 Key: FELIX-929
>                 URL: https://issues.apache.org/jira/browse/FELIX-929
>             Project: Felix
>          Issue Type: New Feature
>          Components: Declarative Services (SCR)
>    Affects Versions: scr-1.0.6
>         Environment: OSGi RFC-0134, OSGi R4.2 Early Draft 2 (http://www.osgi.org/download/osgi-4.2-early-draft2.pdf) 
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: scr-1.0.10
>
>
> To reduce the amount of XML that must be written for a component description, the name attributes of the component and reference elements will be changed from required to optional. This change is only effective for documents in the new namespace.
> The default value of the name attribute of the component element is the value of the class attribute of the nested implementation element.
> The default value of the name attribute of the reference element is the value of the interface attribute of the reference element.

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


[jira] Updated: (FELIX-929) Making name attributes optional

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

Felix Meschberger updated FELIX-929:
------------------------------------

    Fix Version/s:     (was: scr-1.0.10)
                   scr-1.2.0

Retargeting fixes for SCR 1.2.0 release. There will be no 1.0.10 release.

> Making name attributes optional
> -------------------------------
>
>                 Key: FELIX-929
>                 URL: https://issues.apache.org/jira/browse/FELIX-929
>             Project: Felix
>          Issue Type: New Feature
>          Components: Declarative Services (SCR), Specification compliance
>    Affects Versions: scr-1.0.6
>         Environment: OSGi RFC-0134, OSGi R4.2 Early Draft 2 (http://www.osgi.org/download/osgi-4.2-early-draft2.pdf) 
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: scr-1.2.0
>
>
> To reduce the amount of XML that must be written for a component description, the name attributes of the component and reference elements will be changed from required to optional. This change is only effective for documents in the new namespace.
> The default value of the name attribute of the component element is the value of the class attribute of the nested implementation element.
> The default value of the name attribute of the reference element is the value of the interface attribute of the reference element.

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


[jira] Updated: (FELIX-929) Making name attributes optional

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

Felix Meschberger updated FELIX-929:
------------------------------------

    Component/s: Specification compliance

This issue is also about specification compliance.

> Making name attributes optional
> -------------------------------
>
>                 Key: FELIX-929
>                 URL: https://issues.apache.org/jira/browse/FELIX-929
>             Project: Felix
>          Issue Type: New Feature
>          Components: Declarative Services (SCR), Specification compliance
>    Affects Versions: scr-1.0.6
>         Environment: OSGi RFC-0134, OSGi R4.2 Early Draft 2 (http://www.osgi.org/download/osgi-4.2-early-draft2.pdf) 
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: scr-1.0.10
>
>
> To reduce the amount of XML that must be written for a component description, the name attributes of the component and reference elements will be changed from required to optional. This change is only effective for documents in the new namespace.
> The default value of the name attribute of the component element is the value of the class attribute of the nested implementation element.
> The default value of the name attribute of the reference element is the value of the interface attribute of the reference element.

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


[jira] Updated: (FELIX-929) Making name attributes optional

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

Felix Meschberger updated FELIX-929:
------------------------------------

    Assignee: Felix Meschberger

> Making name attributes optional
> -------------------------------
>
>                 Key: FELIX-929
>                 URL: https://issues.apache.org/jira/browse/FELIX-929
>             Project: Felix
>          Issue Type: New Feature
>          Components: Declarative Services (SCR)
>    Affects Versions: scr-1.0.6
>         Environment: OSGi RFC-0134, OSGi R4.2 Early Draft 2 (http://www.osgi.org/download/osgi-4.2-early-draft2.pdf) 
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: scr-1.2.0
>
>
> To reduce the amount of XML that must be written for a component description, the name attributes of the component and reference elements will be changed from required to optional. This change is only effective for documents in the new namespace.
> The default value of the name attribute of the component element is the value of the class attribute of the nested implementation element.
> The default value of the name attribute of the reference element is the value of the interface attribute of the reference element.

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


[jira] Closed: (FELIX-929) Making name attributes optional

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

Felix Meschberger closed FELIX-929.
-----------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: scr-1.2.0)
                   scr-1.0.10

Supporting the omission of the name attributes is a declaration issue only. Since this has been implemented, this issue can be closed.

> Making name attributes optional
> -------------------------------
>
>                 Key: FELIX-929
>                 URL: https://issues.apache.org/jira/browse/FELIX-929
>             Project: Felix
>          Issue Type: New Feature
>          Components: Declarative Services (SCR)
>    Affects Versions: scr-1.0.6
>         Environment: OSGi RFC-0134, OSGi R4.2 Early Draft 2 (http://www.osgi.org/download/osgi-4.2-early-draft2.pdf) 
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: scr-1.0.10
>
>
> To reduce the amount of XML that must be written for a component description, the name attributes of the component and reference elements will be changed from required to optional. This change is only effective for documents in the new namespace.
> The default value of the name attribute of the component element is the value of the class attribute of the nested implementation element.
> The default value of the name attribute of the reference element is the value of the interface attribute of the reference element.

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