Class ValidationExecutorFactory
- java.lang.Object
- 
- org.apache.jackrabbit.vault.validation.ValidationExecutorFactory
 
- 
 public final class ValidationExecutorFactory extends Object CreatesValidationExecutors. Holds a number ofValidatorFactoryinstances.
- 
- 
Constructor SummaryConstructors Constructor Description ValidationExecutorFactory(ClassLoader classLoader)Creates a new instance withValidatorFactoryinstances being created via theServiceLoaderbeing used with the given classloader.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable ValidationExecutorcreateValidationExecutor(@NotNull ValidationContext context, boolean isSubPackage, boolean enforceSubpackageValidation, Map<String,? extends ValidatorSettings> validatorSettingsById)Creates aValidationExecutorfor the given context.
 
- 
- 
- 
Constructor Detail- 
ValidationExecutorFactorypublic ValidationExecutorFactory(ClassLoader classLoader) Creates a new instance withValidatorFactoryinstances being created via theServiceLoaderbeing used with the given classloader.- Parameters:
- classLoader- the class loader to be used with the service loader
 
 
- 
 - 
Method Detail- 
createValidationExecutor@Nullable public @Nullable ValidationExecutor createValidationExecutor(@NotNull @NotNull ValidationContext context, boolean isSubPackage, boolean enforceSubpackageValidation, Map<String,? extends ValidatorSettings> validatorSettingsById) Creates aValidationExecutorfor the given context.- Parameters:
- context- the validation context given to the validators
- isSubPackage-- truein case this is a subpackage, otherwise- false
- enforceSubpackageValidation-- truein case all validators should be also applied in any case to the sub package (independent of their- ValidatorFactory.shouldValidateSubpackages()return value)
- validatorSettingsById- a map of- ValidatorSettings. The key is the validator id. May be- null.
- Returns:
- either nullor an executor (if at least one validator is registered)
 
 
- 
 
-