/** * Allows to avoid checking version format for {@link ArtifactDescriptor} that don't have a {@link BundleDescriptor}. * * @return this */ public ArtifactDescriptorValidatorBuilder doNotFailIfBundleDescriptorNotPresentWhenValidationVersionFormat() { this.validateVersionFormat(); this.doNotFailIfBundleDescriptorNotPresent = true; return this; }
/** * Creates a new factory * * @param descriptorLoaderRepository contains all the {@link ClassLoaderModelLoader} registered on the container. Non null * @param artifactDescriptorValidatorBuilder {@link ArtifactDescriptorValidatorBuilder} to create the {@link ArtifactDescriptorValidator} in order to check the state of the descriptor once loaded. */ public AbstractArtifactDescriptorFactory(DescriptorLoaderRepository descriptorLoaderRepository, ArtifactDescriptorValidatorBuilder artifactDescriptorValidatorBuilder) { checkArgument(descriptorLoaderRepository != null, "descriptorLoaderRepository cannot be null"); this.descriptorLoaderRepository = descriptorLoaderRepository; this.artifactDescriptorValidator = artifactDescriptorValidatorBuilder .validateMinMuleVersion() .validateMuleProduct() .validateVersionFormat() .build(); }
/** * Allows to avoid checking version format for {@link ArtifactDescriptor} that don't have a {@link BundleDescriptor}. * * @return this */ public ArtifactDescriptorValidatorBuilder doNotFailIfBundleDescriptorNotPresentWhenValidationVersionFormat() { this.validateVersionFormat(); this.doNotFailIfBundleDescriptorNotPresent = true; return this; }
/** * Creates a new factory * * @param descriptorLoaderRepository contains all the {@link ClassLoaderModelLoader} registered on the container. Non null * @param artifactDescriptorValidatorBuilder {@link ArtifactDescriptorValidatorBuilder} to create the {@link ArtifactDescriptorValidator} in order to check the state of the descriptor once loaded. */ public AbstractArtifactDescriptorFactory(DescriptorLoaderRepository descriptorLoaderRepository, ArtifactDescriptorValidatorBuilder artifactDescriptorValidatorBuilder) { checkArgument(descriptorLoaderRepository != null, "descriptorLoaderRepository cannot be null"); this.descriptorLoaderRepository = descriptorLoaderRepository; this.artifactDescriptorValidator = artifactDescriptorValidatorBuilder .validateMinMuleVersion() .validateMuleProduct() .validateVersionFormat() .build(); }