/** * This is a factory method which can be used to create a new instance of {@link AnalysisController}, but delivers the mapping between the {@link MIProject} and * the actual analysis. It calls the constructor {@code AnalysisController(MIProject, ClassLoader)}. * * @param project * The project to be loaded. * @param classLoader * The class loader used to load the instances. * @return The newly created controller and the mapping. * @throws NullPointerException * If the project is null. * @throws AnalysisConfigurationException * If the given project could not be loaded. */ public static final AnalysisControllerWithMapping createAnalysisController(final MIProject project, final ClassLoader classLoader) throws NullPointerException, AnalysisConfigurationException { final AnalysisController controller = new AnalysisController(project, classLoader); return new AnalysisControllerWithMapping(controller, controller.pluginModelMap, controller.repositoryModelMap); }
/** * This is a factory method which can be used to create a new instance of {@link AnalysisController}, but delivers the mapping between the {@link MIProject} and * the actual analysis. It calls the constructor {@code AnalysisController(MIProject, ClassLoader)}. * * @param project * The project to be loaded. * @param classLoader * The class loader used to load the instances. * @return The newly created controller and the mapping. * @throws NullPointerException * If the project is null. * @throws AnalysisConfigurationException * If the given project could not be loaded. */ public static final AnalysisControllerWithMapping createAnalysisController(final MIProject project, final ClassLoader classLoader) throws NullPointerException, AnalysisConfigurationException { final AnalysisController controller = new AnalysisController(project, classLoader); return new AnalysisControllerWithMapping(controller, controller.pluginModelMap, controller.repositoryModelMap); }