@Named @Singleton public class DefaultModelBuilder extends Object implements ModelBuilder
构造函数和描述 |
---|
DefaultModelBuilder() |
public DefaultModelBuilder setModelProcessor(ModelProcessor modelProcessor)
public DefaultModelBuilder setModelValidator(ModelValidator modelValidator)
public DefaultModelBuilder setModelNormalizer(ModelNormalizer modelNormalizer)
public DefaultModelBuilder setModelInterpolator(ModelInterpolator modelInterpolator)
public DefaultModelBuilder setModelPathTranslator(ModelPathTranslator modelPathTranslator)
public DefaultModelBuilder setModelUrlNormalizer(ModelUrlNormalizer modelUrlNormalizer)
public DefaultModelBuilder setSuperPomProvider(SuperPomProvider superPomProvider)
public DefaultModelBuilder setProfileSelector(ProfileSelector profileSelector)
public DefaultModelBuilder setProfileInjector(ProfileInjector profileInjector)
public DefaultModelBuilder setInheritanceAssembler(InheritanceAssembler inheritanceAssembler)
public DefaultModelBuilder setDependencyManagementImporter(DependencyManagementImporter depMgmtImporter)
public DefaultModelBuilder setDependencyManagementInjector(DependencyManagementInjector depMgmtInjector)
public DefaultModelBuilder setLifecycleBindingsInjector(LifecycleBindingsInjector lifecycleBindingsInjector)
public DefaultModelBuilder setPluginConfigurationExpander(PluginConfigurationExpander pluginConfigurationExpander)
public DefaultModelBuilder setPluginManagementInjector(PluginManagementInjector pluginManagementInjector)
public DefaultModelBuilder setReportConfigurationExpander(ReportConfigurationExpander reportConfigurationExpander)
public DefaultModelBuilder setReportingConverter(ReportingConverter reportingConverter)
public DefaultModelBuilder setProfileActivationFilePathInterpolator(ProfileActivationFilePathInterpolator profileActivationFilePathInterpolator)
public ModelBuildingResult build(ModelBuildingRequest request) throws ModelBuildingException
ModelBuilder
build
在界面中 ModelBuilder
request
- 保存参数的模型构建请求不能是null
.null
。ModelBuildingException
- 如果无法建立有效的模型。protected ModelBuildingResult build(ModelBuildingRequest request, Collection<String> importIds) throws ModelBuildingException
public ModelBuildingResult build(ModelBuildingRequest request, ModelBuildingResult result) throws ModelBuildingException
ModelBuilder
ModelBuilder.build(ModelBuildingRequest)
with ModelBuildingRequest.isTwoPhaseBuilding()
being产生的指定临时结果来构建有效模型true
。传递给此方法的模型构建请求必须与用于模型构建的第一阶段的请求相同。build
在界面中 ModelBuilder
request
- 保存参数的模型构建请求不能是null
.result
- 模型构建第一阶段的中期结果,不得null
。null
。ModelBuildingException
- 如果无法建立有效的模型。public Result<? extends Model> buildRawModel(File pomFile, int validationLevel, boolean locationTracking)
ModelBuilder
ModelBuilder.build(ModelBuildingRequest)
加载原始模型的部分buildRawModel
在界面中 ModelBuilder
protected boolean hasModelErrors(ModelProblemCollectorExt problems)
protected boolean hasFatalErrors(ModelProblemCollectorExt problems)
版权所有 © 2001–2022 Apache 软件基金会。版权所有。