Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
When a service is bound by calling the configured bind method, the service may be given as the service itself or as its ServiceReference. The intent is to be able to first inspect the reference properties before actually getting the service or to delay activation of a service
component until the service is really needed.
Currently, the service object is always accessed before calling the bind method regardless of whether the service object is really needed or not. Likewise for the unbind method, which always requires the service object regardless of whether it is used to call the unbind method.
In addition, the handling of the arguments of the bind and unbind methods using the m_bindUsesServiceReference field is wrong if the on of the methods takes the service instance while the other takes a ServiceReference.