Fix *_component_getFactory function type

Change-Id: I966824af73effed95d975c09cb8a7f9ae022843f