Package net.sf.collabreview.measurements

Examples of net.sf.collabreview.measurements.MeasurementsManager


  }

  private void configureMeasurements(ConfigurationConfigurableCollabReview collabReview, ConfigurationData config) throws Exception {
    assert collabReview != null;
    assert config != null;
    MeasurementsManager measurementsManager = new MeasurementsManager();
    measurementsManager.setCollabReview(collabReview);
    measurementsManager.setArtifactResponsibility(((ArtifactResponsibilityFactory) getFactory(config.getSubElement("artifactResponsibilityFactoryConfiguration"))).create());
    ArtifactQualityAssessor artifactQualityAssessor = ((ArtifactQualityAssessorFactory) getFactory(config.getSubElement("artifactQualityAssessor"))).create();
    artifactQualityAssessor.setRepository(collabReview.getRepository());
    measurementsManager.setArtifactQualityAssessor(artifactQualityAssessor);
    measurementsManager.setArtifactWeight(((ArtifactWeightFactory) getFactory(config.getSubElement("artifactWeightFactoryConfiguration"))).create());
    measurementsManager.setArtifactSimilarity(((ArtifactSimilarityFactory) getFactory(config.getSubElement("artifactSimilarityFactoryConfiguration"))).create());
    collabReview.setMeasurementsManager(measurementsManager);
    try {
      collabReview.setBestArtifactMetric(((BestArtifactMetricFactory) getFactory(config.getSubElement("bestArtifactMetric"))).create());
    } catch (NullPointerException npe) {
      logger.warn("No <bestArtifactMetric/> defined in configuration");
View Full Code Here

TOP

Related Classes of net.sf.collabreview.measurements.MeasurementsManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.