[ 
https://issues.apache.org/jira/browse/FELIX-1225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Felix Meschberger updated FELIX-1225:
-------------------------------------

    Description: 
The Maven SCR plugin currently only emits the pid attribute for Designate 
elements when MetaType files are written. According to Section 105.6.2, Use of 
the Designate Element, the Designate element may contain pid attribute alone or 
a pid attribute and a factoryPid attribute. In the latter case the pid 
attribute should be ignored unless the Designate contains an Object element for 
consumption by the Configuration Admin to create a factory configuration 
instance.

The fix is to emit the factoryPid attribute for factory components.

  was:
The Maven SCR plugin currently only emits the pid attribute for Designate 
elements when MetaType files are written. According to Section 105.6.2, Use of 
the Designate Element, the Designate element should either contain a pid 
attribute or a factoryPid attribute (unless the Designate contains an Object 
element for consumption by the Configuration Admin to create a factory 
configuration instance.

The fix is to emit either the factoryPid or the pid attribute depending on 
whether the component is a factory component or not.


Fix the description to be spec compliant.

> factoryPid attribute of Designate elements for metatype data is not set
> -----------------------------------------------------------------------
>
>                 Key: FELIX-1225
>                 URL: https://issues.apache.org/jira/browse/FELIX-1225
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>    Affects Versions: maven-scr-plugin-1.2.0
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: maven-scr-plugin-1.2.1
>
>
> The Maven SCR plugin currently only emits the pid attribute for Designate 
> elements when MetaType files are written. According to Section 105.6.2, Use 
> of the Designate Element, the Designate element may contain pid attribute 
> alone or a pid attribute and a factoryPid attribute. In the latter case the 
> pid attribute should be ignored unless the Designate contains an Object 
> element for consumption by the Configuration Admin to create a factory 
> configuration instance.
> The fix is to emit the factoryPid attribute for factory components.

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

Reply via email to