You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Marcel Offermans (JIRA)" <ji...@apache.org> on 2007/07/06 06:54:04 UTC

[jira] Commented: (FELIX-303) Support for compositions

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

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

Thanks Dennis, your implementation (an implementation with a proxy) is indeed one of the cases I want to cover with composition support (it is a composition, of implementation and proxy). Ultimately I want to support compositions that consist of N parts.

With Object[] parameters I mean that you might want to explicitly specify a list of objects to inject a certain dependency into. The array could be a subset of the whole composition (or just the whole composition, since it won't harm to try to inject a dependency into an object that does not contain it).

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