Fix *_component_getFactory function type

Change-Id: Ib86d37e1570c9a64ef83beaf11bf0ec4676533eb