package com.atlassian.stash.internal.plugin;

import com.atlassian.plugin.ModuleDescriptor;
import com.atlassian.bitbucket.setting.RepositorySettingsValidator;

import javax.annotation.Nullable;

/**
 * A {@link ModuleDescriptor} that might contain a class for validating settings.
 *
 * @since 2.2
 */
public interface ValidatorModuleDescriptor<T> extends ModuleDescriptor<T> {

    /**
     * @return the optional validation for this {@link ModuleDescriptor} or null.
     */
    @Nullable
    RepositorySettingsValidator getValidator();
}
