You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Paul Bakker (JIRA)" <ji...@apache.org> on 2015/04/29 12:01:11 UTC

[jira] [Commented] (FELIX-4614) Factory create() method should have access to the component definition

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

Paul Bakker commented on FELIX-4614:
------------------------------------

I think that's sufficient; the only use case for this that I found is creating custom proxies, and for that we only need the component's interface, which is accessible from component.

I also like your Lamda example btw, that would be a nice addition.

> Factory create() method should have access to the component definition
> ----------------------------------------------------------------------
>
>                 Key: FELIX-4614
>                 URL: https://issues.apache.org/jira/browse/FELIX-4614
>             Project: Felix
>          Issue Type: Improvement
>          Components: Dependency Manager
>            Reporter: Paul Bakker
>
> Currently the factory mechanism uses a _create()_ method without arguments. Because of this there is not enough context to create instances. For example creating a Proxy is not possible because we don't know which interface to use for the Proxy. 
> The _create()_ method should support an argument to get access to the component definition. 



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