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

Carsten Ziegeler closed FELIX-578.
----------------------------------


Works - thanks!

> ComponentFactoryImpl.newInstance() must create the component synchronously
> --------------------------------------------------------------------------
>
>                 Key: FELIX-578
>                 URL: https://issues.apache.org/jira/browse/FELIX-578
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: scr-1.0.1
>
>
> The ComponentFactoryImpl.newInstance() method internally calls the 
> AbstractComponentManager.enable() method to enable and activate the newly 
> created component instance. The enable() method in turn schedules the 
> enableInternal() method to run asynchronously.
> In the context of the ComponentFactoryImpl.newInstance() method this 
> asynchronous enablement is not correct, as the caller expects the 
> ComponentInstance returned from the newInstance to be active.
> Hence the ComponentFactoryImpl.newInstance() method must be able to enable 
> the created component synchronously.

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