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 2017/01/06 15:25:58 UTC

[jira] [Commented] (FELIX-5456) [R7] Field injection of component activation objects

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

Carsten Ziegeler commented on FELIX-5456:
-----------------------------------------

Implemented this in rev 1777628
Added a new constructor class implementation which will allows us to also implement FELIX-5455

> [R7] Field injection of component activation objects
> ----------------------------------------------------
>
>                 Key: FELIX-5456
>                 URL: https://issues.apache.org/jira/browse/FELIX-5456
>             Project: Felix
>          Issue Type: Sub-task
>          Components: Declarative Services (SCR)
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: scr-2.1.0
>
>
> A new activation-fields attribute is defined for the <component> element which names the instance fields in the component implementation class which are to be injected with component activation objects. This attribute must contain a whitespace separated list of field names.
> An activation field must be one of the following types:
> - ComponentContext - The field will be set to the Component Context for the component configuration.
> - BundleContext - The field will be set the Bundle Context of the component's bundle.
> - Map - The field will be set with an unmodifiable Map containing the component properties.
> - A component property type - The field will be set with an instance of the component property type which allows type safe access to component properties defined by the component property type.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)