
com.hp.autonomy.frontend.configuration.DistributedConfigValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configuration-idol Show documentation
Show all versions of configuration-idol Show documentation
IDOL implementation of the Micro Focus IDOL Configuration API
/*
* Copyright 2013-2015 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
package com.hp.autonomy.frontend.configuration;
import com.autonomy.aci.client.annotations.IdolAnnotationsProcessorFactory;
import com.autonomy.aci.client.services.AciService;
import com.autonomy.nonaci.indexing.IndexingService;
/**
* {@link Validator} for DistributedConfig
*/
public class DistributedConfigValidator implements Validator {
private AciService aciService;
private IndexingService indexingService;
private IdolAnnotationsProcessorFactory processorFactory;
/**
* @param aciService The AciService to use for validation
*/
public void setAciService(final AciService aciService) {
this.aciService = aciService;
}
/**
* @param indexingService The IndexingService to use for validation
*/
public void setIndexingService(final IndexingService indexingService) {
this.indexingService = indexingService;
}
/**
* @param processorFactory The {@link IdolAnnotationsProcessorFactory} to use for validation
*/
public void setProcessorFactory(final IdolAnnotationsProcessorFactory processorFactory) {
this.processorFactory = processorFactory;
}
@Override
public ValidationResult> validate(final DistributedConfig config) {
return config.validate(aciService, indexingService, processorFactory);
}
@Override
public Class getSupportedClass() {
return DistributedConfig.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy