Update Factory.java

Added injector