Package com.google.gerrit.server.project
Class SubmitRequirementConfigValidator
java.lang.Object
com.google.gerrit.server.project.SubmitRequirementConfigValidator
- All Implemented Interfaces:
CommitValidationListener
Validates the expressions of submit requirements in
project.config.
Other validation of submit requirements is done in ProjectConfig, see
ProjectConfig#loadSubmitRequirementSections(Config).
The validation of the expressions cannot be in ProjectConfig as it requires injecting
SubmitRequirementsEvaluator and we cannot do injections into ProjectConfig (since
ProjectConfig is cached in the project cache).
-
Method Summary
Modifier and TypeMethodDescriptionCommit validation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.gerrit.server.git.validators.CommitValidationListener
shouldValidateAllCommits
-
Method Details
-
onCommitReceived
public List<CommitValidationMessage> onCommitReceived(CommitReceivedEvent event) throws CommitValidationException Description copied from interface:CommitValidationListenerCommit validation.- Specified by:
onCommitReceivedin interfaceCommitValidationListener- Parameters:
event- commit event details- Returns:
- list of validation messages
- Throws:
CommitValidationException- if validation fails
-