Search in sources :

Example 1 with CargoExtractor

use of com.synopsys.integration.detectable.detectables.cargo.CargoExtractor in project synopsys-detect by blackducksoftware.

the class DetectableFactory method createCargoDetectable.

public CargoDetectable createCargoDetectable(DetectableEnvironment environment) {
    CargoTomlParser cargoTomlParser = new CargoTomlParser();
    CargoDependencyLineParser cargoDependencyLineParser = new CargoDependencyLineParser();
    CargoLockPackageDataTransformer cargoLockPackageDataTransformer = new CargoLockPackageDataTransformer(cargoDependencyLineParser);
    CargoLockPackageTransformer cargoLockPackageTransformer = new CargoLockPackageTransformer();
    CargoExtractor cargoExtractor = new CargoExtractor(cargoTomlParser, cargoLockPackageDataTransformer, cargoLockPackageTransformer);
    return new CargoDetectable(environment, fileFinder, cargoExtractor);
}
Also used : CargoLockPackageTransformer(com.synopsys.integration.detectable.detectables.cargo.transform.CargoLockPackageTransformer) CargoExtractor(com.synopsys.integration.detectable.detectables.cargo.CargoExtractor) CargoDetectable(com.synopsys.integration.detectable.detectables.cargo.CargoDetectable) CargoDependencyLineParser(com.synopsys.integration.detectable.detectables.cargo.parse.CargoDependencyLineParser) CargoLockPackageDataTransformer(com.synopsys.integration.detectable.detectables.cargo.transform.CargoLockPackageDataTransformer) CargoTomlParser(com.synopsys.integration.detectable.detectables.cargo.parse.CargoTomlParser)

Aggregations

CargoDetectable (com.synopsys.integration.detectable.detectables.cargo.CargoDetectable)1 CargoExtractor (com.synopsys.integration.detectable.detectables.cargo.CargoExtractor)1 CargoDependencyLineParser (com.synopsys.integration.detectable.detectables.cargo.parse.CargoDependencyLineParser)1 CargoTomlParser (com.synopsys.integration.detectable.detectables.cargo.parse.CargoTomlParser)1 CargoLockPackageDataTransformer (com.synopsys.integration.detectable.detectables.cargo.transform.CargoLockPackageDataTransformer)1 CargoLockPackageTransformer (com.synopsys.integration.detectable.detectables.cargo.transform.CargoLockPackageTransformer)1