You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2013/01/25 14:41:15 UTC

[jira] [Resolved] (FELIX-2929) Read @Property from interfaces of types annotated with @Component

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

Carsten Ziegeler resolved FELIX-2929.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: scr generator 1.4.0
                   scr ant task 1.4.0
                   maven-scr-plugin-1.10.0

If a service interface has @Property annotations these are now added to the component as well (properties defined in the component or one of its super classes have precedence)
                
> Read @Property from interfaces of types annotated with  @Component 
> -------------------------------------------------------------------
>
>                 Key: FELIX-2929
>                 URL: https://issues.apache.org/jira/browse/FELIX-2929
>             Project: Felix
>          Issue Type: Improvement
>          Components: Maven SCR Plugin, SCR Annotations
>            Reporter: Andrei Pozolotin
>            Assignee: Carsten Ziegeler
>             Fix For: maven-scr-plugin-1.10.0, scr ant task 1.4.0, scr generator 1.4.0
>
>
> I see most valuable use of @Property annotation to name the properties:
> 	@Property(value = "default value")
> 	public static final String PROP_NAME = "property.name";
> however, @Property is processed by scr plugin only form immediate class 
> annotated with @Component, and NOT from any implemented intefaces;
> this makes no sense, since @Component type is "internal" and PROP_NAME
> fields are therefore invisible to the manager bundle 
> (which would be trying to set this property via ConfigurationAdmin) 
> hence the request: read @Property from interfaces of types annoted with  @Component 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira