You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Clement Escoffier (JIRA)" <ji...@apache.org> on 2013/05/06 14:30:16 UTC

[jira] [Resolved] (FELIX-4052) Instance declaration not created correctly when using @Instantiate if the @Component specifies a name

     [ https://issues.apache.org/jira/browse/FELIX-4052?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clement Escoffier resolved FELIX-4052.
--------------------------------------

    Resolution: Fixed

Fixed in trunk
                
> Instance declaration not created correctly when using @Instantiate if the @Component specifies a name
> -----------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-4052
>                 URL: https://issues.apache.org/jira/browse/FELIX-4052
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: ipojo-manipulator-1.8.6
>            Reporter: Clement Escoffier
>            Assignee: Clement Escoffier
>             Fix For: ipojo-manipulator-1.8.8
>
>
> The instance declaration is incorrect when a component is using the "name" attribute and an instance is declared using the @Instantiate annotation such as in:
>     @Component(name="my-custom-name)
>     @Instantiate
>     public class MyComponent {
>         //...
>     }
> The instance is declared by is looking for a factory with the component's classname (the default) as factory name, and so the declaration is never bound. In this case the instance must look for the factory with the specified name.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira