made constructor of DetectorFactory.java public