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


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