I'm currently using aalto, so (as Mark Rotteveel pointed out) I can spawn an instance directly like:
final XMLInputFactory2 factory = new com.fasterxml.aalto.stax.InputFactoryImpl();
This can be modified to be any specific implementation.