An On-Orbit Injector for Betatrons and Synchrotrons