def __set_binding(self, dependency, service, reference):
        # type: (Any, Any, ServiceReference) -> None
        """
        Injects a service in the component

        :param dependency: The dependency handler
        :param service: The injected service
        :param reference: The reference of the injected service
        """
        # Set the value
        setattr(self.instance, dependency.get_field(), dependency.get_value())

        # Call the component back
        self.safe_callback(constants.IPOPO_CALLBACK_BIND, service, reference)

        self.__safe_field_callback(
            dependency.get_field(),
            constants.IPOPO_CALLBACK_BIND_FIELD,
            service,
            reference,
        )
def __set_binding ( self , dependency , service , reference ) : setattr ( self . instance , dependency . get_field ( ) , dependency . get_value ( ) ) self . safe_callback ( constants . IPOPO_CALLBACK_BIND , service , reference ) self . __safe_field_callback ( dependency . get_field ( ) , constants . IPOPO_CALLBACK_BIND_FIELD , service , reference , )
Injects a service in the component

        :param dependency: The dependency handler
        :param service: The injected service
        :param reference: The reference of the injected service