Fix *_component_getFactory function type

Change-Id: I354cf9cfa5f1a749b01d16c93dbe7b86784a7d34