Fix *_component_getFactory function type

Change-Id: I91b18d4a96d10070fb9e7be76ea39b07541fa4db