/** * Constructs an {@link AnalysisController} instance using the given parameter. * * @param configuration * The global configuration of this analysis. All plugins can indirectly access it. */ public AnalysisController(final Configuration configuration) { this.globalConfiguration = this.validateConfiguration(configuration.flatten(this.getDefaultConfiguration())); this.projectName = this.getProperty(CONFIG_PROPERTY_NAME_PROJECT_NAME); }
/** * Constructs an {@link AnalysisController} instance using the given parameter. * * @param configuration * The global configuration of this analysis. All plugins can indirectly access it. */ public AnalysisController(final Configuration configuration) { this.globalConfiguration = this.validateConfiguration(configuration.flatten(this.getDefaultConfiguration())); this.projectName = this.getProperty(CONFIG_PROPERTY_NAME_PROJECT_NAME); }
/** * Creates a new instance of the class {@link AnalysisController} but uses the given instance of @link{Project} to construct the analysis. * * @param project * The project instance for the analysis. * @param classLoader * The class loader used for the initializing. * @throws NullPointerException * If the project is null. * @throws AnalysisConfigurationException * If the given project could not be loaded. */ public AnalysisController(final MIProject project, final ClassLoader classLoader) throws NullPointerException, AnalysisConfigurationException { if (project == null) { throw new NullPointerException("Can not load project null."); } else { this.globalConfiguration = this.validateConfiguration(new Configuration(this.getDefaultConfiguration())); this.loadFromModelProject(project, classLoader); this.projectName = project.getName(); } }
/** * Creates a new instance of the class {@link AnalysisController} but uses the given instance of @link{Project} to construct the analysis. * * @param project * The project instance for the analysis. * @param classLoader * The class loader used for the initializing. * @throws NullPointerException * If the project is null. * @throws AnalysisConfigurationException * If the given project could not be loaded. */ public AnalysisController(final MIProject project, final ClassLoader classLoader) throws NullPointerException, AnalysisConfigurationException { if (project == null) { throw new NullPointerException("Can not load project null."); } else { this.globalConfiguration = this.validateConfiguration(new Configuration(this.getDefaultConfiguration())); this.loadFromModelProject(project, classLoader); this.projectName = project.getName(); } }