Class ValidationExecutorFactory
- java.lang.Object
-
- org.apache.jackrabbit.vault.validation.ValidationExecutorFactory
-
public final class ValidationExecutorFactory extends Object
CreatesValidationExecutor
s. Holds a number ofValidatorFactory
instances.
-
-
Constructor Summary
Constructors Constructor Description ValidationExecutorFactory(ClassLoader classLoader)
Creates a new instance withValidatorFactory
instances being created via theServiceLoader
being used with the given classloader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable ValidationExecutor
createValidationExecutor(@NotNull ValidationContext context, boolean isSubPackage, boolean enforceSubpackageValidation, Map<String,? extends ValidatorSettings> validatorSettingsById)
Creates aValidationExecutor
for the given context.
-
-
-
Constructor Detail
-
ValidationExecutorFactory
public ValidationExecutorFactory(ClassLoader classLoader)
Creates a new instance withValidatorFactory
instances being created via theServiceLoader
being 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 aValidationExecutor
for the given context.- Parameters:
context
- the validation context given to the validatorsisSubPackage
-true
in case this is a subpackage, otherwisefalse
enforceSubpackageValidation
-true
in 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
null
or an executor (if at least one validator is registered)
-
-