Fix *_component_getFactory function type

Change-Id: Ic9cd9e1a8188b810e0db336c5844ffa943f0c7c4