[ 
https://issues.apache.org/jira/browse/FELIX-2929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022918#comment-13022918
 ] 

Andrei Pozolotin commented on FELIX-2929:
-----------------------------------------

current workaround: must have third, external dictionary class 
whcih provides 

Constants.PROP_NAME = "property.name"; 

which in turn is used by both configuring component (manager bundle) to set 
property in map,
and configured component (managed bundle) to read property from config map
thus making @Property annotation useless


> read @Property from interfaces of types annoted with  @Component 
> -----------------------------------------------------------------
>
>                 Key: FELIX-2929
>                 URL: https://issues.apache.org/jira/browse/FELIX-2929
>             Project: Felix
>          Issue Type: Improvement
>          Components: SCR Annotations
>            Reporter: Andrei Pozolotin
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to