Fuel-injection apparatus with permanent magnets