felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Agemo Cui (JIRA)" <j...@apache.org>
Subject [jira] Closed: (FELIX-1445) When a component is deactivated due to the deactivation of a service to which it staticly 1..1 references, this component is not reactivated when that service is reregistered.
Date Mon, 03 Aug 2009 19:49:14 GMT

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

Agemo Cui closed FELIX-1445.
----------------------------


> When a component is deactivated due to the deactivation of a service to which it staticly
1..1 references, this component is not reactivated when that service is reregistered.
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1445
>                 URL: https://issues.apache.org/jira/browse/FELIX-1445
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>    Affects Versions: scr-1.0.8
>            Reporter: Agemo Cui
>            Assignee: Felix Meschberger
>             Fix For: scr-1.2.0
>
>
> According to the comments in the method serviceAdded of class DependencyManager,  it
looks like the first "if" is to check the unsatisfied state.
> But there are 2 unsatisfied state: STATE_ENABLED and STATE_UNSATISFIED.
> So the first "if" should be as follows.
> if ( (m_componentManager.getState() &
> 				(AbstractComponentManager.STATE_ENABLED | AbstractComponentManager.STATE_UNSATISFIED))
!= 0)
> And in the following "else if", the method "handleServiceEvent" is going to check the
statisfied state.
> So "STATE_UNSATISFIED" should be removed from DependencyManager.STATE_MASK.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message