[
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.