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

Marcel Offermans commented on FELIX-303:
----------------------------------------

Committed an initial implementation which features two new concepts:
1. An instance factory, which can be used to create the service implementation 
(and can be used to construct an arbitrary composition).
2. A composition, which has a getter that returns all instances that are part 
of the composition (and that should be scanned for dependencies that are 
injected).
Still untested, and the API might change. Feel free to try it out and comment 
on it though.

> Support for compositions
> ------------------------
>
>                 Key: FELIX-303
>                 URL: https://issues.apache.org/jira/browse/FELIX-303
>             Project: Felix
>          Issue Type: New Feature
>          Components: Dependency Manager
>    Affects Versions: 0.8.0
>            Reporter: Marcel Offermans
>            Assignee: Marcel Offermans
>             Fix For: 1.0.0
>
>         Attachments: proxy.patch.txt
>
>
> When creating service implementations out of POJO's, the more complex 
> implementations will often be composed out of several POJO's, using 
> composition instead of inheritance. This means instead of one implementation, 
> you have N implementations. The consequences of this are that for both the 
> callbacks and the injected services, you want to be able to explicitly 
> specify one of more instances, instead of assuming there's only one. The API 
> needs to be extended to support this (basically adding a parameter of type 
> Object[] for some of the methods).

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