Class ValidationExecutorFactory
- java.lang.Object
-
- org.apache.jackrabbit.vault.validation.ValidationExecutorFactory
-
public final class ValidationExecutorFactory extends Object
CreatesValidationExecutors. Holds a number ofValidatorFactoryinstances.
-
-
Constructor Summary
Constructors Constructor Description ValidationExecutorFactory(ClassLoader classLoader)Creates a new instance withValidatorFactoryinstances being created via theServiceLoaderbeing used with the given classloader.
-
Method Summary
All 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
-
ValidationExecutorFactory
public 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 validatorsisSubPackage-truein case this is a subpackage, otherwisefalseenforceSubpackageValidation-truein case all validators should be also applied in any case to the sub package (independent of theirValidatorFactory.shouldValidateSubpackages()return value)validatorSettingsById- a map ofValidatorSettings. The key is the validator id. May benull.- Returns:
- either
nullor an executor (if at least one validator is registered)
-
-